@@ 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 | /** |
@@ 144-148 (lines=5) @@ | ||
141 | add_action( 'set_logged_in_cookie', array( $this, 'set_cookie_on_current_request' ) ); |
|
142 | add_filter( 'woocommerce_get_checkout_payment_url', array( $this, 'get_checkout_payment_url' ), 10, 2 ); |
|
143 | ||
144 | if ( WC_Stripe_Helper::is_pre_orders_exists() ) { |
|
145 | $this->pre_orders = new WC_Stripe_Pre_Orders_Compat(); |
|
146 | ||
147 | add_action( 'wc_pre_orders_process_pre_order_completion_payment_' . $this->id, array( $this->pre_orders, 'process_pre_order_release_payment' ) ); |
|
148 | } |
|
149 | } |
|
150 | ||
151 | /** |