[ic] retain order-id if payment fails?

Grant emailgrant at gmail.com
Tue Jan 7 23:39:05 UTC 2014

Is there a way to retain the order-id (transaction ID) if the payment
fails without hacking Business/OnlinePayment/Braintree.pm?

$result{MStatus} = 'failure';
-- delete $result{'order-id'};

The Braintree payment processor allows you to "clone" a previous
transaction (even a declined one) with a simple API call that only
references the original transaction ID:


If we can retain the order-id, then we can retry declined cards a few
times over the course of a few days before giving up and notifying the
customer.  I've noticed Amazon does this.

- Grant

More information about the interchange-users mailing list