我正在向莫莉发送新的付款,其中包括二维码(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}我做错了什么?
发布于 2020-11-02 17:38:58
API似乎有问题。莫莉会去检查的
发布于 2021-07-14 19:17:09
如果你使用的是Mollie测试环境,那么mollie不会添加QRcode,只有活动的QRcode才会包含在"details“中。
https://stackoverflow.com/questions/64635572
复制相似问题