cancel
Showing results for 
Search instead for 
Did you mean: 

PayPal Payments Standard rm parameter set to "2" for POST but returns as GET

Options
wduffy
Contributor
Posted on

My Paypal integration is not returning to my site with POST. It returns as GET and therefor no parameters of the sale are passed to my site.

 

I have configured this with <input type="hidden" name="rm" value="2" /> as detailed in https://developer.paypal.com/docs/paypal-payments-standard/integration-guide/Appx-websitestandard-ht...

 

Can anyone shed some light on why this would have stopped working? I have checked in both live and sandbox and both are showing the same behaviour.

 

<form method="POST" action="https://www.paypal.com/cgi-bin/webscr" />
<input type="hidden" name="cmd" value="_xclick" />
<input type="hidden" name="callback_version" value="3.8" />
<input type="hidden" name="rm" value="2" />
<input type="hidden" name="business" value="business_at_email.co.uk" />
<input type="hidden" name="image_url" value="http://url/logo.png" />
<input type="hidden" name="cbt" value="Return to the client website" />
<input type="hidden" name="item_name" value="Customer 75000004, Checkout 50166" />
<input type="hidden" name="item_number" value="777e21f0-9117-4762-a58f-132727f33f5c" />
<input type="hidden" name="amount" value="5.89" />
<input type="hidden" name="custom" value="version=2|transaction=777e21f0-9117-4762-a58f-132727f33f5c|user=75000004" />
<input type="hidden" name="currency_code" value="GBP" />
<input type="hidden" name="notify_url" value="https://url/notify" />
<input type="hidden" name="return" value="https://url/return" />
<input type="hidden" name="cancel_return" value="http://url/cancel" />
</form>

1 REPLY 1

PayPal Payments Standard rm parameter set to "2" for POST but returns as GET

Options
wduffy
Contributor

I got this working by modifying the PayPal - Account Settings - Website Payment Preferences

 

Set "Auto Return" to On. I entered a url but it seems to change it as expected using the supplied "return" parameter.

Ensure "Payment Data Transfer" is disabled. If this is enabled the "rm" parameter seems to be ignored and it forces the GET method to be used.

 

With these setup the "rm" parameter set to 2 appears to be honoured and the customer is returned by a POST method with the transaction variables enclosed in the form request.

Haven't Found your Answer?

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