Checkout.com返回错误无效的付款货币

时间:2018-05-02 22:24:26

标签: go checkout-payments

我正在研究Checkout.com API integration for golang。 我为checkout.com选择了Sofort和iDEAL等几个替代供应商。这两个文档都有很好的文档:

但示例中的代码返回相同的错误

curl https://sandbox.checkout.com/api2/v2/tokens/payment \
-H "Authorization: sk_test_..." \
-H "Content-Type: application/json" \
-X POST \
-d '{
"email" : "test@email.com",
    "value": 1000,
    "currency": "EUR",
    "chargeMode": "3",
    "successUrl": "http://mycustomerurl.com/order?result=pass",
    "failUrl": "http://mycustomerurl.com/order?result=fail"
}'

返回

{"id":"pay_tok_7A0B43FF-C418-4C54-811D-704279BB5AAA","liveMode":false}

此付款令牌用于

之后
curl https://sandbox.checkout.com/api2/v2/charges/localpayment \
-H "Authorization: sk_test_..." \
-H "Content-Type: application/json" \
-X POST \
-d '{
    "email" : "test@email.com",
    "localPayment" : {
    "lppId" : "lpp_14",
    "userData" : {}
    },
   "paymentToken" : "pay_tok_7A0B43FF-C418-4C54-811D-704279BB5AAA"
}'

我们在这里

{"errorCode":"81001","message":"Invalid payment currency","eventId":"11e5a092-425e-4db9-910e-f26024a0e007"}

1 个答案:

答案 0 :(得分:0)

为了能够测试其他付款方式,需要在Checkout.com Sandbox帐户中启用这些方法。默认情况下,仅启用信用卡付款。

为此,您需要与Checkout.com的支持团队取得联系,他们将对您的帐户进行必要的配置。