Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
357 views
in Technique[技术] by (71.8m points)

php - Paypal express "order summary" page

I'm in the the process of replacing the Free and Standard paypal button with a Express checkout integration. I believe I've done most of the work but I have 2 outstanding questions.

  1. When using the old button it redirected me to an order summary page where I could still update the quantity of the product I wanted to buy. With Express checkout it seems that this option has dissapeaed. Whilst the quantity field is still there, it's read-only and can therefore not be altered anymore. Can I make it so this field becomes editable again?

  2. When i get redirected to the paypal site after pressing submitting the form is not consistent, I suspect Paypal is in the process of rolling out some updates to this page and is doing some A/B testing to see which layout is performing better but it would be good if someone else could confirm a similiar behaviour and if there's anything that I can do to force a particular layout? I found other posts on this forum but they were posted a while ago hence the recheck.

Thanks

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

1.Express Checkout, its actually a API call to the PayPal server. If you want to edit the Quantity, you need to change the value L_PAYMENTREQUEST_n_QTYm using your own logic and send the request to PayPal(quantity is not editable).Doc

2.Actually PayPal has released a new Express Checkout layout.

There are two URL's 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 as you wish.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...