创建 Paypal 加密按钮 returns 错误 11945 invalid country and locale combination

Creation of Paypal encrypted button returns the error 11945 invalid country and locale combination

我正在使用 Button Manager API. Despite all my efforts I am facing the error 11945 The button country and language code combination specified is invalid..

创建加密的 Paypal 按钮

首先,我尝试实现自己按钮的创建,但在跟踪此错误时,我以 their tutorial using curl 结束,这对我来说也失败了,并出现了同样的错误。 (注意:我必须将凭据更改为我的凭据)。

具体来说,他们教程中的这段代码失败并出现错误 11945:

curl https://api-3t.sandbox.paypal.com/nvp \
  -s \
  --insecure \
  -d USER=<my-user-name> \
  -d PWD=<my-password> \
  -d SIGNATURE=<my-signature> \
  -d VERSION=51.0 \
  -d METHOD=BMCreateButton \
  -d BUTTONCODE=ENCRYPTED \
  -d BUTTONTYPE=CART \
  -d BUTTONSUBTYPE=PRODUCTS \
  -d BUTTONCOUNTRY=US \
  -d L_BUTTONVAR1=item_name%3Dshoehorn \
  -d L_BUTTONVAR2=amount%3D1464.46 \
  -d L_BUTTONVAR3=tax=%3D21 \
  -d L_BUTTONVAR4=item_number%3D123456

我试图弄清楚为什么会这样,但我还没有找到任何相关来源。

谁能解释一下这个问题?国家代码设置为US,应该没问题。

我们将不胜感激。

注意:我现在正在使用沙箱。

注意:通过 lc 属性定义语言环境没有帮助。我尝试了 en 以及 en_US 值。

经过 discussion 支持 Paypal,得出结论。

简短版本:这是一个错误。

长版(由版主 MTS_Ciaran):

Thanks, so this looks like a bug on the sandbox from what I can see. The issue is that the account is CZ and for some reason we're not allowing the button creation because of that. It doesnt look to be the same on the live environment so I would suggest using a US account for testing and once live the CZ account shouldn't be an issue.

I'll work internally to get the sandbox corrected for this.