check_is_get_data_submitted( 'pay_for_order' ) && ! empty( $this->get_request_data( 'key' ) ) ) { global $wp; $order = wc_get_order( wc_clean( $wp->query_vars['order-pay'] ) ); $amount = $order->get_total(); } if ( is_add_payment_method_page() || $this->is_subs_change_payment() ) { $amount = 0; } $this->amount = $this->get_revolut_order_total( $amount, $currency ); $this->currency = $currency; $this->revolut_customer_id = $revolut_customer_id; } }