通过" NVP http api"使用paypal express chackout我需要自定义网关页面区域设置。 在我尝试doc后:
LOCALECODE = ES
(但也使用es_ES,en_US,ecc ..进行检查。)
问题是它总是以意大利语显示网关(我认为它只考虑当前的商家地址)。 这个在Sandbox和Live环境中。太
现在,我也读到了这个" Localizing the buyer's checkout experience in Express Checkout",我们可以在这里读到:
以下内容均可用于确定结帐页面的区域设置:
请求是:
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
有人帮忙吗?只想用西班牙语,因为网站是西班牙语。
答案 0 :(得分:0)
我不知道为什么,但现在它起作用,正确的LOCALECODE是"完整的语言环境"这样:
LOCALECODE=es_ES
我只能认为沙盒上存在某种延迟...经过3次尝试后,使用" es_ES"最后网关是西班牙语。