payment button error with return variable
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
when i use a payment button 'buy now' in paypal [create a buy-now button] , I'm suppose to be able to add variables to choose the form method (default is GET, I want POST, because it is suppose to contains additional information about the payment)
the option is called 'rm' for 'return method', [rm option described here] , and can have 3 values : 0, 1 or 2. 0 and 1 are for GET method, 2 is for POST method for the redirection url. To works it needs the other variable 'return' to be set to the url for redirection
but the option 'return' cannot be set, it creates an error in the form : "Unsupported variable return"
and when the option 'return' is not set, the option 'rm=2' does nothing
what can i do ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ok i found a partial solution : the variable is 'returns' instead of 'return', the documentation has an error
but the url added in this variable is not used, instead it's the url added in the field "return url" that receives the request in 3 parts :
- first a get request with the standard infos from paypal
- then the page receives a second request with both get and post at the same time, at least it is what it appears to me, and the post header has all the infos i wanted
![Moderator Moderator](https://www.paypalobjects.com/webstatic/icon/pp32.png)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Good day @huho
Thank you for posting to the PayPal community.
I believe you are referring to PayPal Website Payments Standard (WPS) is a legacy integration.
Important : Yes, we recommend merchants to integrate our latest PayPal Checkout (Smart button) product.
To ensure a seamless transition, I suggest using the following URL: https://developer.paypal.com/integration-builder/ to generate the button code required for your website. This will help you take advantage of the advanced features and improved functionality offered by PayPal Checkout (Smart button).
Additionally, before you begin coding, it is essential to familiarize yourself with some key points. To gain a better understanding of these points, I urge you to refer to the following link:
https://developer.paypal.com/docs/checkout/standard/integrate/#link-knowbeforeyoucode.
For additional information, please visit the following links.
https://developer.paypal.com/docs/checkout/
https://developer.paypal.com/demo/checkout/#/pattern/server
If you are still experiencing issues, please create an MTS ticket via the following URL - https://www.paypal-support.com/s/?language=en_US .Please ensure that you provide detailed information and error details when submitting the ticket.
Sincerely,
Kavya
PayPal MTS
If this post or any other was helpful, please enrich the community by giving kudos or accepting it as a solution.
![](/skins/images/83D64FD030FE5B270502BD5A0410FEFC/responsive_peak/images/icon_anonymous_message.png)
Haven't Found your Answer?
It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.
- "System error. Please try again later" when connecting to paypal sandbox account with my android app in Sandbox Environment
- Django-paypal form is not showing "pay with credit or debit card" option in Braintree Server-side Integration (PHP, Java, .NET, Ruby, Python, NodeJS SDKs)
- subscription_id has disappeared in REST APIs
- CHECKOUT.ORDER.APPROVED webhook event not triggered if payment_source is passed in in REST APIs
- use the payment button code with variable price in REST APIs