Paypal Express checkout showing old site instead of new

冷暖自知 提交于 2019-12-07 11:41:34

问题


I am trying to setup Paypal express checkout for my website, and I have managed to get it to work, however I have noticed that on some websites you appear to get the new style of Paypal, but on mine I appear to be getting the old.

New style that I want:

The style that I'm getting:

I want to be able to set one or more items as part of the invoice, as well as always having a payment fee and booking fee, as in the first picture above.

When making the initial call to Paypal to get a token to setup the express checkout I am passing the following in the query string.

USER: username,
PWD: password,
SIGNATURE: signature,
VERSION: 117.0,
ALLOWNOTE: 0,
METHOD: 'SetExpressCheckout',
RETURNURL: returnUrl,
CANCELURL: cancelUrl,
NOSHIPPING: '1',
LOCALCODE: 'GB',
EMAIL: 'test@test.com',
PAYMENTREQUEST_0_ITEMAMT: '20.00',
PAYMENTREQUEST_0_CURRENCYCODE: 'GBP',
PAYMENTREQUEST_0_PAYMENTACTION: 'Sale',
PAYMENTREQUEST_0_HANDLINGAMT: '2.00',
PAYMENTREQUEST_0_AMT: '22.00',

L_PAYMENTREQUEST_0_ITEMCATEGORY0: 'Physical',
L_PAYMENTREQUEST_0_NAME0: 'Journey 1',
L_PAYMENTREQUEST_0_AMT0: '20.00',
L_PAYMENTREQUEST_0_QTY0: '1'

I can't work out why my one is showing the old site instead of the new one. I have tested this with both the sandbox and live version of Paypal and getting the same thing, so I presume it is either something wrong with my Paypal account setup or the parameters I am passing in the initial express checkout setup?

The urls I am using are: https://api-3t.sandbox.paypal.com for the initial connection, and https://www.sandbox.paypal.com/cgi-bin/webscr?cmd=_express-checkout&token=TOKEN_RETURNED for the redirect that I send the user to after getting a token.

I have also seen live websites using both the old version and the new version of Paypal.

Thanks in advance for any help!


回答1:


The new pages are something they're slowly rolling out. Even the same site will see both versions sometimes. It's just a random thing they've got set happening on their end. For example, they may be pushing 50% of all Express Checkout transactions through the new pages while pushing the other 50% through the old pages to split test them against each other. I don't know if that's the exact thing they're doing, but it's just an example. It's not anything you'll be able to control.



来源:https://stackoverflow.com/questions/25675770/paypal-express-checkout-showing-old-site-instead-of-new

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!