Skip to content

Commit 7abf075

Browse files
authored
Merge pull request woocommerce#3376 from woocommerce/PCP-4607-payments-with-debit-credit-cards-are-failing
Payments with Debit & Credit Cards are failing (4607)
2 parents 22ec1e0 + 2f8ddb7 commit 7abf075

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/ppcp-googlepay/src/GooglepayModule.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ function ( array $features ) use ( $c ): array {
253253
'ppcp_create_order_request_body_data',
254254
static function ( array $data, string $payment_method, array $request ) use ( $c ) : array {
255255

256-
$funding_source = $request['funding_source'];
256+
$funding_source = $request['funding_source'] ?? '';
257257
if ( $payment_method !== GooglePayGateway::ID && $funding_source !== 'googlepay' ) {
258258
return $data;
259259
}

0 commit comments

Comments
 (0)