Sandbox

Kerob
Contributor
Contributor

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".

Login to Me Too
5 REPLIES 5

MTS_Justin
Moderator
Moderator
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.

Was my post helpful? If so, please give me a kudos!
Login to Me Too

amgentech
New Community Member

@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>

Login to Me Too

Kerob
Contributor
Contributor
It starts to work for me.
Login to Me Too

Kerob
Contributor
Contributor
http://joxi.ru/nAyvyvBHYQa9Wr but some times it is responced this.
Login to Me Too

MTS_Justin
Moderator
Moderator
Hello, That was an issue earlier today, we're just resolved it so it shouldn't be appearing any longer. Apologies for any inconvenience.

Was my post helpful? If so, please give me a kudos!
Login to Me Too

Haven't Found your Answer?

It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.