mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-06 13:44:42 +08:00
Merge pull request #1972 from woocommerce/fix-funding-source-warning
Fix warning undefined funding_source.
This commit is contained in:
commit
08511ba5d8
1 changed files with 2 additions and 1 deletions
|
@ -106,8 +106,9 @@ class SavePaymentMethodsModule implements ModuleInterface {
|
|||
}
|
||||
|
||||
if ( $payment_method === PayPalGateway::ID ) {
|
||||
$funding_source = $request_data['funding_source'] ?? null;
|
||||
|
||||
if ( $request_data['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