mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-06 13:44:42 +08:00
Fix funding source check
This commit is contained in:
parent
298a72b6c5
commit
4a74911f6d
1 changed files with 1 additions and 1 deletions
|
@ -298,7 +298,7 @@ class CreateOrderEndpoint implements EndpointInterface {
|
|||
}
|
||||
|
||||
if ( 'checkout' === $data['context'] ) {
|
||||
if ( ! in_array( $funding_source, $this->funding_sources_without_redirect, true ) ) {
|
||||
if ( $payment_method === PayPalGateway::ID && ! in_array( $funding_source, $this->funding_sources_without_redirect, true ) ) {
|
||||
$this->session_handler->replace_order( $order );
|
||||
$this->session_handler->replace_funding_source( $funding_source );
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue