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)