Does the PayGate system return a status variable one can use with Workflow to redirect to a fail/cancel page?

Or can this module be updated to allow for configuring a separate Pass & Fail message?

Thanks

Comments

gomez_in_the_south’s picture

StatusFileSize
new3.46 KB

I needed this functionality, so I've created a patch to add a field: 'Failed Transaction Return URL' to the settings. You can optionally enter a path or url here where the user would be redirected if the transaction fails.

Note that there is also a separate bug fix included in this patch. There was case sensitive bug that caused the 'production' setting to be ignored. This means the test mode would always be used, irrespective of the 'Transaction mode' set (you're welcome to just extract that bug fix if you don't want to commit the whole patch).

foxtrotcharlie’s picture

Status: Active » Needs review

Thanks for the patch George. I had the issue where I had changed the transaction mode from test to production and when going to the paygate site, it still showed the test page. Your patch worked to fix this issue. I also tested the fail/cancel page functionality, and it works well and is useful.

Max_Headroom’s picture

Patch commited

Max_Headroom’s picture

Version: 6.x-1.x-dev » 6.x-1.4
Status: Needs review » Fixed
Max_Headroom’s picture

Status: Fixed » Closed (fixed)