Paypal expresses an “order summary”

I am in the process of replacing the free and standard paypal button with Express checkout integration. I believe that I did most of the work, but I have 2 unresolved issues.

  • Using the old button, she redirected me to the order summary page, where I could update the quantity of the product I wanted to buy. With express checking, this option seems to be disordered. While the quantity field is still present, it is read-only and therefore cannot be changed anymore. Can I make this field editable again?

  • When I redirect to the paypal site after clicking on the form submission, it is incompatible, I suspect that Paypal is in the process of deploying some updates to this page and does some A / B checks to see which layout works better, but it would be nice if would someone else be able to confirm similar behavior and, if there is something that I can do to get a specific layout? I found other posts on this forum, but they were posted some time ago, so check back.

thanks

+4
php paypal paypal-express
source share
2 answers

1.Express Checkout, its actually an API call to the PayPal server. If you want to edit the quantity, you need to change the L_PAYMENTREQUEST_n_QTYm value using your own logic and send the request to PayPal (the quantity cannot be edited). Doc

2. In general, PayPal has released a new Express Checkout layout.

There are two URLs here:

Old layout : https://www.paypal.com/cgi-bin/webscr?cmd=_express-checkout&token=EC-24P528268C112244W enter image description here

New layout : https://www.paypal.com/checkoutnow/2?token=EC-24P528268C112244W enter image description here

You can force any layout you want.

+4
source share

I found that you can force the old layout by including the "force_sa = true" parameter in the payment request URL. It is not possible to find documentation anywhere, but it seems to work sequentially. I asked for technical support from him and received an answer:

The new express checkout layout is gradually expanding, you may have the option to force the link with the following redirect URL: ' https://www.sandbox.paypal.com/checkoutnow/2?token= ' to force the new checkout layout, it does the same thing as force_sa = true

I did not answer my question, but I assume that they recognized it as a valid way to force the layout, and not be at the mercy of their "deployment."

+1
source share

All Articles