【问题标题】:Error when paying with iDeal: "Signature not supplied"使用 iDeal 付款时出错:“未提供签名”
【发布时间】:2018-10-16 19:44:26
【问题描述】:

我在 Adyen 设置了一个测试帐户。我尝试通过测试 API 付款。将以下有效负载提供给以下端点:

https://checkout-test.adyen.com/v37/payments

有效载荷/正文:

    {
        amount: {
            currency: "EUR",
            value: price
        },
        countryCode: "NL",
        shopperLocale:"nl_NL",
        reference: description,
        paymentMethod: {
            type: "ideal"
        },
        returnUrl: "https://xxx.nl",
        merchantAccount: "xxxxx"
    }

如预期的那样,将返回带有重定向 url 的响应。当我转到那个 URL 时,我可以按预期在不同的银行之间进行选择。只是,当我选择银行付款时,页面会告诉我Error: Signature not supplied。这是什么意思?我必须怎么做才能成功完成我的测试付款?

【问题讨论】:

    标签: api adyen


    【解决方案1】:

    Checkout API 希望您提供用于选择和收集付款方式详细信息的 UI/视觉效果。这意味着您需要收集购物者选择的理想银行。

    您可以从 /paymentMethods 确定必填字段。

    从 /paymentMethods 返回

    {
      "paymentMethods":[{
          "name":"iDEAL",
          "type":"ideal",
          "details":[{
              "key":"issuer",
              "type":"select",
              "items":[{
                  "name":"Test Issuer",
                  "id":"1121"
                },
                ...
              ]
          }]
        },
        ...
      ]
    }
    

    假设您选择“Test Issuer”,您的有效负载/正文将包含 1121

    paymentMethod.issuer
    {
        amount: {
            currency: "EUR",
            value: price
        },
        countryCode: "NL",
        shopperLocale:"nl_NL",
        reference: description,
        paymentMethod: {
            type: "ideal",
            issuer: "1121"
        },
        returnUrl: "https://xxx.nl",
        merchantAccount: "xxxxx"
    }
    

    【讨论】:

      猜你喜欢
      • 2014-09-01
      • 1970-01-01
      • 1970-01-01
      • 2016-12-17
      • 1970-01-01
      • 1970-01-01
      • 2014-03-06
      • 2013-09-19
      • 1970-01-01
      相关资源
      最近更新 更多