payment button error with return variable

huho
Contributor
Contributor

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 ?

Login to Me Too
2 REPLIES 2

huho
Contributor
Contributor

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
Login to Me Too

Kavyar
Moderator
Moderator

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.

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.