dp709369831 2018-05-02 22:24
浏览 47
已采纳

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

I'm working on the Checkout.com API integration for golang. I chose checkout.com for several alternative providers like Sofort and iDEAL. There are a good documentation for both of them:

but code from the example returns the same error

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"
}'

returns

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

after this payment token is used for

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"
}'

and here we are

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

1条回答 默认 最新

  • dongshi6528 2018-05-03 13:34
    关注

    To be able to test alternative payment methods these methods would need to be enabled on your Checkout.com Sandbox account. Only card payments are enabled by default.

    To do so you need to get in touch with Checkout.com's support team and they will do the required configuration on your account.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?