Currently forms add a calculated "total" value but there doesn't appear to be any mechanism downstream to determine if the transaction succeeded or failed.
The attached patch modifies pay_form so that after submitting a transaction for payment, it sets a total_paid form variable. If the transaction failed this will be equal to zero.
| Comment | File | Size | Author |
|---|---|---|---|
| pay_form.inc_.patch | 579 bytes | mikedickey |
Comments
Comment #1
allie mickaHI Mike,
I have committed lots of changes that should hopefully account for this better. In particular, I have added a 'state' value to each transaction, and that state is modified as payment activities transpire. For example, a successful activity should set $transaction->state to 'complete', and a failed one should set it to 'canceled'.
Please have a look at the git version of the code, and let me know if this change - or one like it - is still required.
Thanks a lot!