Postponed (maintainer needs more info)
Project:
Pay
Version:
6.x-1.0-alpha6
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
5 Jan 2011 at 02:26 UTC
Updated:
13 Apr 2011 at 16:10 UTC
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!