Failed payment returns success


When processing payment for a failed payment, the payment gateway returns success.
For success payment, payment gateway returns success again.
Can you provide PHP script for implementation on website.

(3rd party integration for USD payment)


Good day, please share the code you are using to check. Are you using Express checkout i.e Ecocash/OneMoney? Is your integration in test mode or live?