@@ 902-904 (lines=3) @@ | ||
899 | * @since 4.3 |
|
900 | */ |
|
901 | public function prepare_intent_for_order_pay_page( $order = null ) { |
|
902 | if ( ! isset( $order ) || empty( $order ) ) { |
|
903 | $order = wc_get_order( absint( get_query_var( 'order-pay' ) ) ); |
|
904 | } |
|
905 | $intent = $this->get_intent_from_order( $order ); |
|
906 | ||
907 | if ( ! $intent ) { |
|
@@ 940-942 (lines=3) @@ | ||
937 | * @since 4.2 |
|
938 | */ |
|
939 | public function render_payment_intent_inputs( $order = null ) { |
|
940 | if ( ! isset( $order ) || empty( $order ) ) { |
|
941 | $order = wc_get_order( absint( get_query_var( 'order-pay' ) ) ); |
|
942 | } |
|
943 | if ( ! isset( $this->order_pay_intent ) ) { |
|
944 | $this->prepare_intent_for_order_pay_page( $order ); |
|
945 | } |