#Payment pending status

1 messages · Page 1 of 1 (latest)

rapid robin
#

I have created a connection using the Mollie API.
When a user wants to pay I redirect them to Mollie and they get redirected back to the website. On the site I know there payment id so I get there payment with the status in order to show them an error (and help them try again) or a thank you.n The payment method is iDeal.

But In the redirect part is where there is an issue. Sometimes when I try getting the payment it is not getting any status while they to have paid. When I check the payment using Postman and make the same API call of getting the payment I get a payment with the status.

What can I do to fix this and show the correct screen (thank you or error) after the user comes back? Do I need to wait a few second or minutes until the status get updated?

The code is created in PHP and I use the Mollie PHP wrapper (https://github.com/mollie/mollie-api-php)

GitHub

Mollie API client for PHP. Contribute to mollie/mollie-api-php development by creating an account on GitHub.

sinful birch
#

Hi,

When the User is redirected to your Page, the payment process must not be finished. Only if Mollie Receives the Information that the transaction is done, Mollie set the Status to paid.

So it can take some time (seconds) until the payment is Marked as paid.

rapid robin
#

Hi, thank you for your reply!
What is the best way of handeling this? It is smart to show a loader so I can get check the payment status every 2 seconds? Or do you have a better idea?

sinful birch
#

I Show a Page like „payment is bering processed“ and if the payment is paid, I Redirect to a success page or, if failed, to an error page