【问题标题】:How to retrieve the QR code for Bancontact with Mollie API?如何使用 Mollie API 检索 Bancontact 的 QR 码?
【发布时间】:2021-02-14 12:30:25
【问题描述】:

我正在向 Mollie 发送新的付款,其中包含 QR 码 (https://docs.mollie.com/reference/v2/payments-api/create-payment#):

$payment = $mollie->payments->create([
        "amount" => [
              "currency" => "EUR",
              "value" => $rows['inst_prijs_wespen'] // You must send the correct number of decimals, thus we enforce the use of strings
        ],
        "description" => "Wespenverdelging - ".$rows['inst_zone_naam'],
        "redirectUrl" => "https://".$rows['inst_url']."/mollie/processpayment.php?id=".$interventie_id,
        "webhookUrl" => "https://".$rows['inst_url']."/mollie/webhook.php",
        "method" => "bancontact",
        "metadata" => [
                "interventie_id" => $interventie_id
        ],
    
    ],
    [
        "include" => "details.qrCode"
    ]
);

付款已正确创建(QR 除外)。

但如文档 (https://docs.mollie.com/guides/qr-codes) 中所述,“详细信息”中未提供 QR 数据

amount: {value: "48.40", currency: "EUR"}
amountCaptured: null
amountRefunded: null
amountRemaining: null
applicationFeeAmount: null
authorizedAt: null
canceledAt: null
countryCode: null
createdAt: "2020-11-01T18:29:50+00:00"
customerId: null
description: "******"
details: null
expiredAt: null
expiresAt: "2020-11-01T19:29:50+00:00"
failedAt: null
id: "********"
isCancelable: false
locale: null
mandateId: null
metadata: {*****}
method: "bancontact"
mode: "live"
orderId: null
paidAt: null
profileId: "*******"
resource: "payment"
restrictPaymentMethodsToCountry: null
sequenceType: "oneoff"
settlementAmount: {value: "48.40", currency: "EUR"}
settlementId: null
status: "open"
subscriptionId: null
_embedded: null}

我做错了什么?

【问题讨论】:

    标签: php mollie


    【解决方案1】:

    API 似乎有问题。莫莉会检查的

    【讨论】:

      【解决方案2】:

      如果您使用的是 mollie 测试环境,Mollie 不会添加二维码,只有 live 才会在“详细信息”中包含二维码

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2018-10-27
        • 1970-01-01
        • 2022-01-05
        • 2017-10-30
        • 1970-01-01
        相关资源
        最近更新 更多