| @@ 121-125 (lines=5) @@ | ||
| 118 | add_action( 'woocommerce_update_options_payment_gateways_' . $this->id, array( $this, 'process_admin_options' ) ); |
|
| 119 | add_action( 'wp_enqueue_scripts', array( $this, 'payment_scripts' ) ); |
|
| 120 | ||
| 121 | if ( WC_Stripe_Helper::is_pre_orders_exists() ) { |
|
| 122 | $this->pre_orders = new WC_Stripe_Pre_Orders_Compat(); |
|
| 123 | ||
| 124 | add_action( 'wc_pre_orders_process_pre_order_completion_payment_' . $this->id, array( $this->pre_orders, 'process_pre_order_release_payment' ) ); |
|
| 125 | } |
|
| 126 | } |
|
| 127 | ||
| 128 | /** |
|
| @@ 148-152 (lines=5) @@ | ||
| 145 | // Note: display error is in the parent class. |
|
| 146 | add_action( 'admin_notices', array( $this, 'display_errors' ), 9999 ); |
|
| 147 | ||
| 148 | if ( WC_Stripe_Helper::is_pre_orders_exists() ) { |
|
| 149 | $this->pre_orders = new WC_Stripe_Pre_Orders_Compat(); |
|
| 150 | ||
| 151 | add_action( 'wc_pre_orders_process_pre_order_completion_payment_' . $this->id, array( $this->pre_orders, 'process_pre_order_release_payment' ) ); |
|
| 152 | } |
|
| 153 | } |
|
| 154 | ||
| 155 | /** |
|