mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-06 18:16:38 +08:00
Fix change payment check to not conflict with Pay Now
This commit is contained in:
parent
ebe1e84907
commit
1f8b449e38
1 changed files with 2 additions and 2 deletions
|
@ -58,8 +58,8 @@ trait ProcessPaymentTrait {
|
||||||
* If customer has chosen a saved credit card payment.
|
* If customer has chosen a saved credit card payment.
|
||||||
*/
|
*/
|
||||||
$saved_credit_card = filter_input( INPUT_POST, 'saved_credit_card', FILTER_SANITIZE_STRING );
|
$saved_credit_card = filter_input( INPUT_POST, 'saved_credit_card', FILTER_SANITIZE_STRING );
|
||||||
$pay_for_order = filter_input( INPUT_GET, 'pay_for_order', FILTER_SANITIZE_STRING );
|
$change_payment = filter_input( INPUT_GET, 'woocommerce_change_payment', FILTER_SANITIZE_STRING );
|
||||||
if ( $saved_credit_card && ! isset( $pay_for_order ) ) {
|
if ( $saved_credit_card && ! isset( $change_payment ) ) {
|
||||||
|
|
||||||
$user_id = (int) $wc_order->get_customer_id();
|
$user_id = (int) $wc_order->get_customer_id();
|
||||||
$customer = new \WC_Customer( $user_id );
|
$customer = new \WC_Customer( $user_id );
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue