openerp-community team mailing list archive
-
openerp-community team
-
Mailing list archive
-
Message #04352
Re: paypal integration
Iam using following script for refund.
import paypalrestsdk
import logging
logging.basicConfig(level=logging.INFO)
paypalrestsdk.configure({
"mode": "sandbox", # sandbox or live
"client_id": "EBWKjlELKMYqRNQ6sYvFo64FtaRLRR5BdHEESmha49TM",
"client_secret": "EO422dn3gQLgDbuwqTjzrFgFtaRLRR5BdHEESmha49TM" })
payment = paypalrestsdk.Payment.find("PAY-57363176S1057143SKE2HO3A")
if payment.execute({"payer_id": "DUFRQ8GWYMJXC"}):
print("Payment execute successfully")
else:
print(payment.error)
###############
But it throws error while execution-
returned a response status of 401 Unauthorized.
Any idea where iam going wrong?
Any configuration missing?
--
View this message in context: http://openerp-community.2306076.n4.nabble.com/paypal-integration-tp4644100p4644107.html
Sent from the OpenERP Community mailing list archive at Nabble.com.
References