Posted: February 22, 2017 at 12:50 pm
I have built and payment gateway plugin for payment express using your skelton payment gateway plugin.
The problem i’m having is that once payment has been made on payment expresses hosted payment page it triggers a success url response every few seconds while still on their page, until they redirect back to the EE site, this is to make sure the response gets through. so this means the handle_payment_update() function is running multiple times which then triggers multiple copies of the emails to be sent.
I am trying to add an if statement around the handle_payment_update() function to make sure the current payment status different to the payment status returned from the payment gateway
this is the if statement i am trying but with no success
the full function
any help to only trigger this function on change of status would be great thank you.
You can open an issue on the Github repository and one of the developers will answer your question. When you post the issue, please include a link to your custom gateway add-on so they can review if need be.
The support post ‘Payment Gateway duplicate calls’ is closed to new replies.
Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.