Browser Content Security Policy Issue
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I am integrating the paypal payment system in python Django environment. Now, as per the basic guidelines, the payment is created as follows,
payment = Payment({
"intent": "sale",
#Set payment method
"payer": {
"payment_method": "paypal"
},
# Set redirect URLs
"redirect_urls":
{
"return_url": "http://localhost:3000/process",
"cancel_url": "http://localhost:3000/cancel"
},
# Set transaction object
"transactions": [
{ "amount":
{ "total": "10.00",
"currency": "USD" },
"description": "payment description"
}]
})
if payment.create():
for link in payment.links:
if link.method == "REDIRECT":
redirect_url = (link.href)
return redirect_url
return False
else:
print(payment.error)
return False
Now, it generates a redirect url properly. But after going into the url (payment page) I am getting a list of errors in both Google chrome and in Mozilla Firefox. Now the error is related to CSP but that is not in my hand cause the rules are mentioned in the paypal page itself. Is there any way out for this problem ?
.
Haven't Found your Answer?
It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.
- can't checkout with safari in PayPal Payments Standard
- Paypal payment error analysis and root cause in NVP/SOAP APIs
- paypal support chat window does not work in firefox browser in PayPal Payments Standard
- Once a user uses PayPal subscription button, how do I lock/unlock content? in SDKs
- Error when payment done. Inline events violates Content Security Policy directive. in PayPal Payments Standard