Fix warning undefined funding_source.

This commit is contained in:
Pedro Silva 2024-01-18 11:00:19 +00:00
parent 544be89c0b
commit 018ef05f26
No known key found for this signature in database
GPG key ID: E2EE20C0669D24B3

View file

@ -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(