Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
361 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 Reply

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.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...