Commit 54aef66
committed
[skyverge/wc-plugins#487] Redefine do_credit_card_transaction()
This change supports the Moneris efraud validation fix from
skyverge/wc-plugins#487 by adding an optional $response parameter, so
that the transaction can actually be performed outside of this method
(say in a child class's override) and pass in the response.
Although this is technically a backwards-incompatible change, at present
it's only the Moneris gateway itself that overrides the
do_credit_card_transaction() method. Therefore, the only way a merchant
could get into trouble would be if they had both Moneris and another
frameworked payment gateway installed AND they updated the other payment
gateway AND the other payment gateway had this newer version of the
framework included. seems like an acceptable level of risk1 parent e5c1793 commit 54aef66
File tree
1 file changed
+8
-5
lines changed- woocommerce/payment-gateway
1 file changed
+8
-5
lines changedLines changed: 8 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
616 | 616 | | |
617 | 617 | | |
618 | 618 | | |
| 619 | + | |
619 | 620 | | |
620 | 621 | | |
621 | 622 | | |
622 | | - | |
| 623 | + | |
623 | 624 | | |
624 | | - | |
625 | | - | |
626 | | - | |
627 | | - | |
| 625 | + | |
| 626 | + | |
| 627 | + | |
| 628 | + | |
| 629 | + | |
| 630 | + | |
628 | 631 | | |
629 | 632 | | |
630 | 633 | | |
| |||
0 commit comments