PayPal Payments Standard rm parameter set to "2" for POST but returns as GET
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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>
- Labels:
-
PayPal HTML Buttons
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Is it possible to make payments in RON (Romanian Leu) through PayPal? in REST APIs
- Problem with invoices in REST APIs
- Advance checkout in Braintree Server-side Integration (PHP, Java, .NET, Ruby, Python, NodeJS SDKs)
- Add parameters to custom auto return url? in PayPal Payments Standard
- Why does PayPal redirect to different pages (login vs credit card form) depending on browser mode? in Braintree Server-side Integration (PHP, Java, .NET, Ruby, Python, NodeJS SDKs)