[ic] Pay-cert redeemed even when credit card fails

Josh Lavin josh at myprivacy.ca
Fri Nov 2 11:01:37 EST 2007

When an order is purchased using both a credit card and the  
redemption of a payment certificate, and the credit card number fails  
with the gateway, the pay-cert gets redeemed anyways. When the error  
is shown to the customer on the checkout page, there is no longer a  
box to check for redemption of their pay-cert, as it has already been  
marked as redeemed.

This behavior is caused by the pay-cert redemption code in etc/ 
log_transaction running without checking for a gateway error. I am  
not sure how to fix... any ideas?

--Snip from log:
Total order: $99.95
Payment processing...payment_method=credit_card
Redeeming payment certs: 61672507
Amount remaining: 90.95
Credit card will be charged 90.95
Charging with payment mode=authorizenet
Real-time charge FAILED. Reason: Authorizenet error:

Kingdom Design  (210) 200-8489

More information about the interchange-users mailing list