| @@ -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 | +} | |