| @@ 185-189 (lines=5) @@ | ||
| 182 | add_action( 'woocommerce_receipt_stripe', array( $this, 'stripe_checkout_receipt_page' ) ); |
|
| 183 | add_action( 'woocommerce_api_' . strtolower( get_class( $this ) ), array( $this, 'stripe_checkout_return_handler' ) ); |
|
| 184 | ||
| 185 | if ( WC_Stripe_Helper::is_pre_orders_exists() ) { |
|
| 186 | $this->pre_orders = new WC_Stripe_Pre_Orders_Compat(); |
|
| 187 | ||
| 188 | add_action( 'wc_pre_orders_process_pre_order_completion_payment_' . $this->id, array( $this->pre_orders, 'process_pre_order_release_payment' ) ); |
|
| 189 | } |
|
| 190 | } |
|
| 191 | ||
| 192 | /** |
|
| @@ 120-124 (lines=5) @@ | ||
| 117 | add_action( 'woocommerce_update_options_payment_gateways_' . $this->id, array( $this, 'process_admin_options' ) ); |
|
| 118 | add_action( 'wp_enqueue_scripts', array( $this, 'payment_scripts' ) ); |
|
| 119 | ||
| 120 | if ( WC_Stripe_Helper::is_pre_orders_exists() ) { |
|
| 121 | $this->pre_orders = new WC_Stripe_Pre_Orders_Compat(); |
|
| 122 | ||
| 123 | add_action( 'wc_pre_orders_process_pre_order_completion_payment_' . $this->id, array( $this->pre_orders, 'process_pre_order_release_payment' ) ); |
|
| 124 | } |
|
| 125 | } |
|
| 126 | ||
| 127 | /** |
|