Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/apache-spark/6.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Api 使用“理想”付款时出错;“未提供签名”;_Api_Adyen - Fatal编程技术网

Api 使用“理想”付款时出错;“未提供签名”;

Api 使用“理想”付款时出错;“未提供签名”;,api,adyen,Api,Adyen,我在Adyen建立了一个测试帐户。我尝试通过测试API付款。将以下有效负载提供给以下端点: https://checkout-test.adyen.com/v37/payments 有效载荷/车身: { amount: { currency: "EUR", value: price }, countryCode: "NL", shopperLocale:"nl_NL",

我在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时,我可以按预期在不同的银行之间进行选择。只是,当我选择银行付款时,页面会告诉我
错误:未提供签名
。这是什么意思?要成功完成测试付款,我必须做些什么?

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

您可以通过/paymentMethods确定所需字段

从/paymentMethods返回

{
  "paymentMethods":[{
      "name":"iDEAL",
      "type":"ideal",
      "details":[{
          "key":"issuer",
          "type":"select",
          "items":[{
              "name":"Test Issuer",
              "id":"1121"
            },
            ...
          ]
      }]
    },
    ...
  ]
}
假设您选择了“测试发行人”,您的有效负载/正文将包括
paymentMethod.Issuer
of1121

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