Hello,
I have a number of forms that perform independent bespoke business processes with a payment embedded:
Step 1. Some business process
Step 2. Payment (API to the gateway supplier using CURL)
Step 3. More business process depending on the result
Up to now I have simply embedded the payment logic in each form and it works well. But this is becoming tedious and error-prone especially when changes occur. I want to find a way to call the gateway process as a function.
So what I want to do is something like:
Form A redirects to Form Xpay with some payment parameters plus returl=http://formA?event=return
Form B redirects to Form Xpay with some other payment parameters plus returl=http://formB?event=return
Form X runs (it has no html render, just code and events) and then redirects to the value received in returl.
Is there a way to do this? I realise that I could use an Event Switcher in Form Xpay, but this means Form Xpay is not a generic function since it must be edited to add new redirects when I introduce Forms C,D, ....
Ideal solution would be a redirect action that takes a variable url or a curly bracket.
Cheers
Tim
I have a number of forms that perform independent bespoke business processes with a payment embedded:
Step 1. Some business process
Step 2. Payment (API to the gateway supplier using CURL)
Step 3. More business process depending on the result
Up to now I have simply embedded the payment logic in each form and it works well. But this is becoming tedious and error-prone especially when changes occur. I want to find a way to call the gateway process as a function.
So what I want to do is something like:
Form A redirects to Form Xpay with some payment parameters plus returl=http://formA?event=return
Form B redirects to Form Xpay with some other payment parameters plus returl=http://formB?event=return
Form X runs (it has no html render, just code and events) and then redirects to the value received in returl.
Is there a way to do this? I realise that I could use an Event Switcher in Form Xpay, but this means Form Xpay is not a generic function since it must be edited to add new redirects when I introduce Forms C,D, ....
Ideal solution would be a redirect action that takes a variable url or a curly bracket.
Cheers
Tim