|
@@ 880-882 (lines=3) @@
|
| 877 |
|
* @since 4.3 |
| 878 |
|
*/ |
| 879 |
|
public function prepare_intent_for_order_pay_page( $order = null ) { |
| 880 |
|
if ( ! isset( $order ) || empty( $order ) ) { |
| 881 |
|
$order = wc_get_order( absint( get_query_var( 'order-pay' ) ) ); |
| 882 |
|
} |
| 883 |
|
$intent = $this->get_intent_from_order( $order ); |
| 884 |
|
|
| 885 |
|
if ( ! $intent ) { |
|
@@ 918-920 (lines=3) @@
|
| 915 |
|
* @since 4.2 |
| 916 |
|
*/ |
| 917 |
|
public function render_payment_intent_inputs( $order = null ) { |
| 918 |
|
if ( ! isset( $order ) || empty( $order ) ) { |
| 919 |
|
$order = wc_get_order( absint( get_query_var( 'order-pay' ) ) ); |
| 920 |
|
} |
| 921 |
|
if ( ! isset( $this->order_pay_intent ) ) { |
| 922 |
|
$this->prepare_intent_for_order_pay_page( $order ); |
| 923 |
|
} |