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.

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

报告相同问题?

悬赏问题

  • ¥15 VB.NET2022如何生成发布成exe文件
  • ¥30 matlab appdesigner私有函数嵌套整合
  • ¥15 给我一个openharmony跑通webrtc实现视频会议的简单demo项目,sdk为12
  • ¥15 vb6.0使用jmail接收smtp邮件并另存附件到D盘
  • ¥30 vb net 使用 sendMessage 如何输入鼠标坐标
  • ¥15 关于freesurfer使用freeview可视化的问题
  • ¥100 谁能在荣耀自带系统MagicOS版本下,隐藏手机桌面图标?
  • ¥15 求SC-LIWC词典!
  • ¥20 有关esp8266连接阿里云
  • ¥15 C# 调用Bartender打印机打印