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.

CommentFileSizeAuthor
pay_form.inc_.patch579 bytesmikedickey

Comments

allie micka’s picture

Status: Active » Postponed (maintainer needs more info)

HI 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!