mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-05 08:59:14 +08:00
Fix warning undefined funding_source.
This commit is contained in:
parent
544be89c0b
commit
018ef05f26
1 changed files with 1 additions and 1 deletions
|
@ -108,7 +108,7 @@ class SavePaymentMethodsModule implements ModuleInterface {
|
|||
if ( $payment_method === PayPalGateway::ID ) {
|
||||
$funding_source = $request_data['funding_source'] ?? null;
|
||||
|
||||
if ( $funding_source === 'venmo' ) {
|
||||
if ( $funding_source && $funding_source === 'venmo' ) {
|
||||
$data['payment_source'] = array(
|
||||
'venmo' => array(
|
||||
'attributes' => array(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue