Closed TimBiesmans closed 3 years ago
Hi @TimBiesmans,
Have you include the query include=details.qrCode
in your URL?
Hi @MollieRick
This is my code to create the 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",
]
);
Payment is created, but no data for the QR-code
The payments are created with the Live API Key
@MollieRick
Hi Rick, you know more already?
Hi @TimBiesmans ,
It seems not API related since I can not reproduce it in Postman. I move your issue to the PHP Package repository.
@sandervanhooft Can you check this?
@sandervanhooft +1
The Get Payment page makes it seem as if requesting an already existing payment with Bancontact (initialized with the include=details.qrCode param) would include the QR code, but once you have created a payment with a QR code, there is no way to retrieve it again from the API. The details-object is empty
@TimBiesmans In testmode, only ideal
is supported for QR codes. Are you experiencing the same with ideal
in testmode, and/or bancontact
in production?
Even in production it isn’t returning a QR code for Bancontact.
I’m using the API. Perhaps hardcoded it will work.
Op 25 jan. 2021, om 12:54 heeft Sander van Hooft notifications@github.com het volgende geschreven:
The Get Payment page makes it seem as if requesting an already existing payment with Bancontact (initialized with the include=details.qrCode param) would include the QR code, but once you have created a payment with a QR code, there is no way to retrieve it again from the API. The details-object is empty
@TimBiesmans https://github.com/TimBiesmans In testmode, only ideal is supported for QR codes. Are you experiencing the same with ideal in testmode, and/or bancontact in production?
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/mollie/mollie-api-php/issues/508#issuecomment-766764164, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOZC6XKB77F6ENP3TD4FQQTS3VLXPANCNFSM4TLTLVUQ.
Thanks for checking this. I'll check if I can reproduce the issue using this package
I am able to create an ideal
payment and see that the details are filled out ok in testmode
.
These details are dynamically assigned from the API response, so if the information is present in the response it should be included in the details object.
Unfortunately however I have no means to test bancontact
in production. Can you check your API response using something like Postman?
No news regarding this issue ?
@powolnymarcel what have you tried so far? Please include code samples so we can reproduce the problem.
We want to implement a Bancontact QR code in our app but ran into this issue as well.
When running with test API key, and using iDeal as a method, we get return with QR code inside of the details. But whenever we do this with a live API key, and using Bancontact as a method we don't get anything in side of the details.
Using the following code:
$payment = \Mollie\Laravel\Facades\Mollie::api()->payments()->create([
"amount" => [
"currency" => "EUR",
"value" => "10.00"
],
"method" => ['bancontact'],
"description" => "My first API payment",
"redirectUrl" => "https://webhook.site/9d0b0c3c-7e9c-4e1a-8e0a-3d0e0e5e1f0e",
"webhookUrl" => "https://webhook.site/9d0b0c3c-7e9c-4e1a-8e0a-3d0e0e5e1f0e",
],[
"include" => "details.qrCode"
]);
Not sure, let me check with the team.
Hi @Yame- ,
Can you check again now?
@sandervanhooft thank you very much! We can indeed generate Bancontact QR codes now.
Thanks for reporting back. Mollie support double checked your account configuration. Looks like they've solved the issue.
The Get Payment page makes it seem as if requesting an already existing payment with Bancontact (initialized with the include=details.qrCode param) would include the QR code, but once you have created a payment with a QR code, there is no way to retrieve it again from the API. The details-object is empty