Fixes an issue when a customer buys a gift voucher and pays with paypal, the order_id stored in the coupon_gv_queue table is always 0.
The problem is that the order id that is being stored is referencing a global, but the call is nested in the paypal payment class
so $insert_id is not in the global scope.
The fix is to update all definitions of the update_credit_acount method to accept a second $order_id param.
All calls to update_credit_account($i) should also be replaced with update_credit_acount($i,$insert_id).
MOD INSTRUCTIONS ATTACHED
More...




LinkBack URL
About LinkBacks









Bookmarks