paypal 快速结帐中的 LOCALECODE 不起作用
LOCALECODE in paypal express checkout not working
在通过 "NVP http api" 使用 paypal express checkout 时,我需要自定义网关页面区域设置。
按照 doc 我尝试了:
LOCALECODE=ES
(但也使用 es_ES、en_US、ecc.. 进行了检查)
问题是它总是以意大利语显示网关(我认为它只考虑了当前的商家地址)。
这在 Sandbox 和 Live env 上。也是。
现在,我也读到了这个“Localizing the buyer's checkout experience in Express Checkout”,我们可以在这里读到:
The following are all taken into consideration to determine the locale of the checkout page:
- 商户在 SetExpressCheckout 请求中提供的送货地址国家。
- 商户传递的LocaleCode参数中取的国家
- 当前登录用户的国家。
- 商家所在国家。
请求是:
array:18 [▼
"USER" => "paypal-xxxxx"
"PWD" => "xxxxxx"
"SIGNATURE" => "xxxxx"
"VERSION" => 123
"METHOD" => "SetExpressCheckout"
"L_PAYMENTREQUEST_0_NAME0" => "my product"
"L_PAYMENTREQUEST_0_AMT0" => "364.78"
"L_PAYMENTREQUEST_0_QTY0" => 1
"PAYMENTREQUEST_0_ITEMAMT" => 364.78
"PAYMENTREQUEST_0_AMT" => 364.78
"PAYMENTREQUEST_0_PAYMENTACTION" => "Sale"
"PAYMENTREQUEST_0_CURRENCYCODE" => "EUR"
"PAYMENTREQUEST_0_DESC" => "customer #64637 Schowalter..."
"PAYMENTREQUEST_0_INVNUM" => "#64637"
"NOSHIPPING" => 1
"RETURNURL" => "http://mydomain.es/payment/success/64637"
"CANCELURL" => "http://mydomain.es"
"LOCALECODE" => "ES"
]
终点是:
https://api-3t.sandbox.paypal.com/nvp
有人帮忙吗?只想使用西班牙语,因为该网站是西班牙语。
我不知道为什么,但现在可以用了,正确的 LOCALECODE 是 "full locale" 所以:
LOCALECODE=es_ES
我只能认为沙盒上存在某种延迟。尝试 3 次后,"es_ES" 最终网关是西班牙语。
在通过 "NVP http api" 使用 paypal express checkout 时,我需要自定义网关页面区域设置。 按照 doc 我尝试了:
LOCALECODE=ES
(但也使用 es_ES、en_US、ecc.. 进行了检查)
问题是它总是以意大利语显示网关(我认为它只考虑了当前的商家地址)。 这在 Sandbox 和 Live env 上。也是。
现在,我也读到了这个“Localizing the buyer's checkout experience in Express Checkout”,我们可以在这里读到:
The following are all taken into consideration to determine the locale of the checkout page:
- 商户在 SetExpressCheckout 请求中提供的送货地址国家。
- 商户传递的LocaleCode参数中取的国家
- 当前登录用户的国家。
- 商家所在国家。
请求是:
array:18 [▼
"USER" => "paypal-xxxxx"
"PWD" => "xxxxxx"
"SIGNATURE" => "xxxxx"
"VERSION" => 123
"METHOD" => "SetExpressCheckout"
"L_PAYMENTREQUEST_0_NAME0" => "my product"
"L_PAYMENTREQUEST_0_AMT0" => "364.78"
"L_PAYMENTREQUEST_0_QTY0" => 1
"PAYMENTREQUEST_0_ITEMAMT" => 364.78
"PAYMENTREQUEST_0_AMT" => 364.78
"PAYMENTREQUEST_0_PAYMENTACTION" => "Sale"
"PAYMENTREQUEST_0_CURRENCYCODE" => "EUR"
"PAYMENTREQUEST_0_DESC" => "customer #64637 Schowalter..."
"PAYMENTREQUEST_0_INVNUM" => "#64637"
"NOSHIPPING" => 1
"RETURNURL" => "http://mydomain.es/payment/success/64637"
"CANCELURL" => "http://mydomain.es"
"LOCALECODE" => "ES"
]
终点是:
https://api-3t.sandbox.paypal.com/nvp
有人帮忙吗?只想使用西班牙语,因为该网站是西班牙语。
我不知道为什么,但现在可以用了,正确的 LOCALECODE 是 "full locale" 所以:
LOCALECODE=es_ES
我只能认为沙盒上存在某种延迟。尝试 3 次后,"es_ES" 最终网关是西班牙语。