Sandbox
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi all,
paypal sandbox does't return to success page. It fails all the time.
I get this error in console on paypal page -
util.js:154 Refused to send form data to 'site_url' because it violates the following Content Security Policy directive: "form-action 'self' https://*.paypal.com https://*.cardinalcommerce.com".
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Tested today using a Buy Now button (WPS) and a Express Checkout API request, passing a URL to be returned to once the payment had been completed and in both cases I was returned to the correct success URL, so no failures being experienced.
Share the code for your button / API request if you want this reviewed in the more detail.
Was my post helpful? If so, please give me a kudos!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@MTS_Justin wrote:
Hello,
Tested today using a Buy Now button (WPS) and a Express Checkout API request, passing a URL to be returned to once the payment had been completed and in both cases I was returned to the correct success URL, so no failures being experienced.
Share the code for your button / API request if you want this reviewed in the more detail.
I'm having the same problem, here is the form code:
<form action='https://www.paypal.com/cgi-bin/webscr' method="post">
<input type="hidden" name="item_number" value="1000" />
<input type="hidden" name="cmd" value="_xclick" />
<input type="hidden" name="no_note" value="1" />
<input type="hidden" name="business" value=" " />
<input type="hidden" name="currency_code" value="USD" />
<input type="hidden" name="return" value="https://www.xxxxx.com/Shop/PaypalReturn?k=xxxxxxxxxxxxxxxxxxxxxxxxxxxxx" />
<input type="hidden" name="rm" value="2" />
<input type="hidden" name="cancel_return" value="https://www.xxxxxxxxx.com/Shop/Paypal?Cancel=true" />
<input type="hidden" name="item_name" value="Cart Total" />
<input type="hidden" name="cbt" value="Return to Sports Info to Finish" />
<input type="hidden" name="amount" value="0.10" />
<input type="hidden" name="cs" value="1" />
<input type="hidden" name="noshipping" value="1" />
<input type="hidden" name="custom" value="1592277|P2553784," />
<div class="Buttons">
<input type="submit" name="submit" value="Pay by Paypal" class="SpecialButton" />
<a href="/Shop/Checkout">Return to Checkout</a>
</div>
<br />
</form>
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Was my post helpful? If so, please give me a kudos!
Haven't Found your Answer?
It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.
- Get error message "Someting went wrong" when the sandbox account tap "Agree and Connect" button. in Sandbox Environment
- IPN works in sandbox but not live in Sandbox Environment
- Change the button from Sandbox to Production in PayPal Payments Standard
- Buy Now button in the sandbox - no customer confirmation email in Sandbox Environment
- Issue with Rendering Trustly Payment Button via PayPal JavaScript SDK in SDKs