|
@@ 928-930 (lines=3) @@
|
| 925 |
|
* @since 4.2 |
| 926 |
|
*/ |
| 927 |
|
public function render_payment_intent_inputs( $order = null ) { |
| 928 |
|
if ( ! isset( $order ) || empty( $order ) ) { |
| 929 |
|
$order = wc_get_order( absint( get_query_var( 'order-pay' ) ) ); |
| 930 |
|
} |
| 931 |
|
if ( ! isset( $this->order_pay_intent ) ) { |
| 932 |
|
$this->prepare_intent_for_order_pay_page( $order ); |
| 933 |
|
} |
|
@@ 890-892 (lines=3) @@
|
| 887 |
|
* @since 4.3 |
| 888 |
|
*/ |
| 889 |
|
public function prepare_intent_for_order_pay_page( $order = null ) { |
| 890 |
|
if ( ! isset( $order ) || empty( $order ) ) { |
| 891 |
|
$order = wc_get_order( absint( get_query_var( 'order-pay' ) ) ); |
| 892 |
|
} |
| 893 |
|
$intent = $this->get_intent_from_order( $order ); |
| 894 |
|
|
| 895 |
|
if ( ! $intent ) { |