mollie / mollie-api-php

Mollie API client for PHP
http://www.mollie.com
BSD 2-Clause "Simplified" License
550 stars 189 forks source link

QR code with Bancontact #508

Closed TimBiesmans closed 3 years ago

TimBiesmans commented 3 years ago

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

MollieRick commented 3 years ago

Hi @TimBiesmans,

Have you include the query include=details.qrCode in your URL?

TimBiesmans commented 3 years ago

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

TimBiesmans commented 3 years ago

The payments are created with the Live API Key

TimBiesmans commented 3 years ago

@MollieRick

Hi Rick, you know more already?

MollieRick commented 3 years ago

Hi @TimBiesmans ,

It seems not API related since I can not reproduce it in Postman. I move your issue to the PHP Package repository.

MollieRick commented 3 years ago

@sandervanhooft Can you check this?

Shnilj commented 3 years ago

@sandervanhooft +1

sandervanhooft commented 3 years ago

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?

sandervanhooft commented 3 years ago

https://docs.mollie.com/guides/qr-codes

image
TimBiesmans commented 3 years ago

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.

sandervanhooft commented 3 years ago

Thanks for checking this. I'll check if I can reproduce the issue using this package

sandervanhooft commented 3 years ago

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?

powolnymarcel commented 2 years ago

No news regarding this issue ?

sandervanhooft commented 2 years ago

@powolnymarcel what have you tried so far? Please include code samples so we can reproduce the problem.

Yame- commented 11 months ago

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"
    ]);
sandervanhooft commented 11 months ago

Not sure, let me check with the team.

sandervanhooft commented 11 months ago

Hi @Yame- ,

Can you check again now?

Yame- commented 11 months ago

@sandervanhooft thank you very much! We can indeed generate Bancontact QR codes now.

sandervanhooft commented 11 months ago

Thanks for reporting back. Mollie support double checked your account configuration. Looks like they've solved the issue.