JacksonRiver/springboard_modules — pull request #176 by afreemannc (2012-11-12 15:00:49+00:00)
Title: modifications to fundraiser_order_decline() required to support failover...

... to a "standard" donation form if a card is expired or declined by the gateway.

When a reference transaction (quick donate for example) fails at the gateway we need to pass the reference id, etc. through hook_fundraiser_order_failure() so 3rd party modules that use payment methods have an identifier they can use to interact with the failed payment method. This could include disabling the failed payment method or simply looking up the payment method pid by the reference id so the user can be show an link to edit their payment method in any error messages that are presented due to the charge error.

Also, given timing issues, invoking hook_fundraiser_order_failure() before fundraiser has finished clearing data out of tables means we can't do redirects when the fail hook is called.