MONEI / MONEI-PrestaShop

MONEI PrestaShop Official Module
https://monei.com
Other
2 stars 1 forks source link

Payment confirmation step takes too long #29

Closed jimmyn closed 2 months ago

jimmyn commented 5 months ago

Whenever customer is redirected back to the store, we need to check the payment status by calling GET payment endpoint instead of waiting for the webhook.

image

jimmyn commented 3 months ago

@presteamshop Please make sure this works correctly, and the module is checking payment status using GET /payments/:id API endpoint and not waiting for the webhook

presteamshop commented 3 months ago

It has been confirmed that it works perfectly. As soon as the webhook confirms the payment, the popup completes the countdown and displays the payment OK message.

image

jimmyn commented 3 months ago

@presteamshop we should not wait for the webhook at all, the module should check the payment status using GET /payments/:id API endpoint and not waiting for the webhook

presteamshop commented 3 months ago

@jimmyn The current setup is working well. It waits for the webhook confirmation to proceed, and if the webhook is not confirmed within one minute, the order is automatically confirmed. This is beneficial to avoid issues with orders that might be created simultaneously. I've experienced problems with other modules that don't have this waiting period.