PluginProbe
PayPlug for WooCommerce (Official) / 2.9.0
PayPlug for WooCommerce (Official) v2.9.0
3.0.0 2.18.0 1.0.17 1.0.18 1.0.19 1.0.20 1.0.21 1.0.22 1.0.3 1.0.4 1.0.5 1.0.6 1.0.7 1.0.8 1.1.0 1.10.0 1.10.1 1.2.1 1.2.10 1.2.11 1.2.2 1.2.3 1.2.4 1.2.5 1.2.6 All 101 releases
← All changes | src/Admin/WoocommerceActions.php +4 -4 1.2.52.9.0 View file →
@@ -33,11 +33,11 @@
33 33 global $theorder;
34 34 $order_id = PayplugWoocommerceHelper::is_pre_30() ? $theorder->id : $theorder->get_id();
35 35 $transaction_id = PayplugWoocommerceHelper::is_pre_30() ? get_post_meta( $order_id, '_transaction_id', true ) : $theorder->get_transaction_id();
36 36 $payment_method = PayplugWoocommerceHelper::is_pre_30() ? $theorder->payment_method : $theorder->get_payment_method();
37 - if (!in_array($payment_method, ['oney_x3_with_fees', 'oney_x4_with_fees', 'payplug']) || empty($transaction_id)) {
37 + if (!in_array($payment_method, ['oney_x3_with_fees', 'oney_x4_with_fees', 'payplug', 'american_express', 'bancontact', 'apple_pay']) || empty($transaction_id)) {
38 38 return $actions;
39 - }
39 + }
40 40 $actions[ self::WC_PAYPLUG_RETRIEVE_ACTION ] = __( 'Update PayPlug transaction data', 'payplug' );
41 41 return $actions;
42 42 }
43 43 /**
@@ -52,9 +52,9 @@
52 52 */
53 53 public function handle_payment_retrieve_action( $order ) {
54 54 $order_id = PayplugWoocommerceHelper::is_pre_30() ? $order->id : $order->get_id();
55 55 $payment_method = PayplugWoocommerceHelper::is_pre_30() ? $order->payment_method : $order->get_payment_method();
56 - if (!in_array($payment_method, ['oney_x3_with_fees', 'oney_x4_with_fees', 'payplug'])) {
56 + if (!in_array($payment_method, ['oney_x3_with_fees', 'oney_x4_with_fees', 'payplug', 'american_express', 'bancontact', 'apple_pay'])) {
57 57 return;
58 58 }
59 59 PayplugGateway::log( sprintf( 'Order #%s : Starting retrieve action process.', $order_id ), 'info' );
60 60 $transaction_id = PayplugWoocommerceHelper::is_pre_30() ? get_post_meta( $order_id, '_transaction_id', true ) : $order->get_transaction_id();
@@ -110,5 +110,5 @@
110 110 return;
111 111 }
112 112 PayplugGateway::log( sprintf( 'Order #%s : Refunds data updated.', $order_id ), 'info' );
113 113 }
114 -}
114 +}