Fix warning undefined funding_source.

This commit is contained in:
Pedro Silva 2024-01-18 10:47:50 +00:00
parent 63d3a22564
commit 544be89c0b
No known key found for this signature in database
GPG key ID: E2EE20C0669D24B3

View file

@ -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 === 'venmo' ) {
$data['payment_source'] = array(
'venmo' => array(
'attributes' => array(