我正在使用WordPress中的小型会员网站。我们已经拥有用户名称和地址,并希望将该信息传递给PayPal Express,以便在用户选择借记卡或信用卡付款时预先填写结算信息。该网站目前仅销往5个国家(英国,美国,澳大利亚,加拿大,新西兰)。
使用Paypal Sandbox我可以将结算信息传送到CA,AU和NZ,但使用相同的nvp字符串(包含货币/国家代码的变体)我无法将其传递给英国或美国。
这是我的工作CA字符串:
&PAYMENTREQUEST_0_ITEMAMT=250.00
&PAYMENTREQUEST_0_CURRENCYCODE=CAD
&PAYMENTREQUEST_0_SHIPTONAME=Test User
&PAYMENTREQUEST_0_SHIPTOCOUNTRYCODE=CA
&PAYMENTREQUEST_0_SHIPTOPHONENUM=01234567890
&PAYMENTREQUEST_0_SHIPTOSTREET=Test Address 1
&PAYMENTREQUEST_0_SHIPTOSTREET2=Test Address 2
&PAYMENTREQUEST_0_SHIPTOCITY=Test City
&PAYMENTREQUEST_0_SHIPTOSTATE=Test State
&PAYMENTREQUEST_0_SHIPTOZIP=123456
&DESC=Example+Description
&NOTIFYURL=http%3A%2F%2Fwww.example.com%2Fwp-admin%2Fadmin-ajax.php%3Faction%3Dipnhandler
&PAYMENTREQUEST_0_SHIPPINGAMT=30.00
&NOSHIPPING=0
&PAYMENTREQUEST_0_AMT=280
&L_BILLINGAGREEMENTDESCRIPTION0=Billing+Description
&L_PAYMENTTYPE0=Any
&ReturnUrl=http%3A%2F%2Fwww.example.com%2Freturnurl
&CANCELURL=http%3A%2F%2Fwww.example.com%2Fcancelurl
&SOLUTIONTYPE=Sole
&LANDINGPAGE=Billing
这是我的非工作英国字符串:
&PAYMENTREQUEST_0_ITEMAMT=135.00
&PAYMENTREQUEST_0_CURRENCYCODE=GBP
&PAYMENTREQUEST_0_SHIPTONAME=User Name
&PAYMENTREQUEST_0_SHIPTOCOUNTRYCODE=UK
&PAYMENTREQUEST_0_SHIPTOPHONENUM=01234567890
&PAYMENTREQUEST_0_SHIPTOSTREET=Test Address 1
&PAYMENTREQUEST_0_SHIPTOSTREET2=Test Address 2
&PAYMENTREQUEST_0_SHIPTOCITY=Test City
&PAYMENTREQUEST_0_SHIPTOSTATE=Test State
&PAYMENTREQUEST_0_SHIPTOZIP=123456
&DESC=Example+Description
&NOTIFYURL=http%3A%2F%2Fwww.example.com%2Fwp-admin%2Fadmin-ajax.php%3Faction%3Dipnhandler
&PAYMENTREQUEST_0_SHIPPINGAMT=20.00
&NOSHIPPING=0
&PAYMENTREQUEST_0_AMT=155
&L_BILLINGAGREEMENTDESCRIPTION0=Billing+Description
&L_PAYMENTTYPE0=Any
&ReturnUrl=http%3A%2F%2Fwww.example.com%2Freturnurl
&CANCELURL=http%3A%2F%2Fwww.example.com%2Fcancelurl
&SOLUTIONTYPE=Sole
&LANDINGPAGE=Billing
你可以看到几乎完全相同。在所有情况下,国家/地区都会正确填充,而不是实际的地址信息。我错过了什么基本的东西?
答案 0 :(得分:2)
英国国家代码不是英国,而是GB