Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/sql/84.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Paypal adaptive payments 如何设置付款人';PayPal自适应支付中的哪个国家?_Paypal Adaptive Payments - Fatal编程技术网

Paypal adaptive payments 如何设置付款人';PayPal自适应支付中的哪个国家?

Paypal adaptive payments 如何设置付款人';PayPal自适应支付中的哪个国家?,paypal-adaptive-payments,Paypal Adaptive Payments,我正在使用PayPal自适应支付及其“嵌入式流” 发送付款请求时,我在clientDetails.ipAddress字段中传递付款人的IP地址,以及X-PAYPAL-DEVICE-ipAddress标头。 此外,我在SetPaymentOptions请求的institutionCustomer.countryCode字段下发送付款人的国家(尽管我不确定institutionCustomer的用途) 然而,当付款人被要求输入他的地址时,贝宝总是将美国显示为默认国家 有人知道如何让PayPal在默认

我正在使用PayPal自适应支付及其“嵌入式流”

发送付款请求时,我在clientDetails.ipAddress字段中传递付款人的IP地址,以及X-PAYPAL-DEVICE-ipAddress标头。 此外,我在SetPaymentOptions请求的institutionCustomer.countryCode字段下发送付款人的国家(尽管我不确定institutionCustomer的用途)

然而,当付款人被要求输入他的地址时,贝宝总是将美国显示为默认国家


有人知道如何让PayPal在默认情况下显示正确的国家吗?

终于从PayPal开发者那里得到了解决方案

将用户重定向到嵌入流时,向URL添加country.x参数,例如:


据称,您还可以传递locale.x参数,例如locale.x=he_IL

或者,您也可以使用类似以下内容: 国家代码/cgi-bin/webscr?cmd=\u ap-payment&paykey=ap-47T233XXXXXB