|
@@ 906-908 (lines=3) @@
|
| 903 |
|
* @since 4.3 |
| 904 |
|
*/ |
| 905 |
|
public function prepare_intent_for_order_pay_page( $order = null ) { |
| 906 |
|
if ( ! isset( $order ) || empty( $order ) ) { |
| 907 |
|
$order = wc_get_order( absint( get_query_var( 'order-pay' ) ) ); |
| 908 |
|
} |
| 909 |
|
$intent = $this->get_intent_from_order( $order ); |
| 910 |
|
|
| 911 |
|
if ( ! $intent ) { |
|
@@ 944-946 (lines=3) @@
|
| 941 |
|
* @since 4.2 |
| 942 |
|
*/ |
| 943 |
|
public function render_payment_intent_inputs( $order = null ) { |
| 944 |
|
if ( ! isset( $order ) || empty( $order ) ) { |
| 945 |
|
$order = wc_get_order( absint( get_query_var( 'order-pay' ) ) ); |
| 946 |
|
} |
| 947 |
|
if ( ! isset( $this->order_pay_intent ) ) { |
| 948 |
|
$this->prepare_intent_for_order_pay_page( $order ); |
| 949 |
|
} |