Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

QR code with Bancontact #508

Closed
TimBiesmans opened this issue Nov 2, 2020 · 19 comments
Closed

QR code with Bancontact #508

TimBiesmans opened this issue Nov 2, 2020 · 19 comments

Comments

@TimBiesmans
Copy link

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
Copy link
Contributor

Hi @TimBiesmans,

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

@TimBiesmans
Copy link
Author

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
Copy link
Author

The payments are created with the Live API Key

@TimBiesmans
Copy link
Author

@MollieRick

Hi Rick, you know more already?

@MollieRick
Copy link
Contributor

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 MollieRick transferred this issue from another repository Nov 5, 2020
@MollieRick
Copy link
Contributor

@sandervanhooft Can you check this?

@Shnilj
Copy link

Shnilj commented Jan 25, 2021

@sandervanhooft +1

@sandervanhooft
Copy link
Collaborator

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
Copy link
Collaborator

@TimBiesmans
Copy link
Author

TimBiesmans commented Jan 25, 2021 via email

@sandervanhooft
Copy link
Collaborator

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

@sandervanhooft
Copy link
Collaborator

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
Copy link

No news regarding this issue ?

@sandervanhooft
Copy link
Collaborator

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

@Yame-
Copy link

Yame- commented Sep 25, 2023

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
Copy link
Collaborator

Not sure, let me check with the team.

@sandervanhooft
Copy link
Collaborator

Hi @Yame- ,

Can you check again now?

@Yame-
Copy link

Yame- commented Sep 26, 2023

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

@sandervanhooft
Copy link
Collaborator

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants