Merge branch 'trunk' into PCP-2521-apple-pay-recurring-payments

# Conflicts:
#	modules/ppcp-save-payment-methods/src/SavePaymentMethodsModule.php
This commit is contained in:
Pedro Silva 2024-01-18 11:34:15 +00:00
commit 300e8f377c
No known key found for this signature in database
GPG key ID: E2EE20C0669D24B3
5 changed files with 5 additions and 5 deletions

View file

@ -100,7 +100,7 @@ return array(
*/
return apply_filters(
'woocommerce_paypal_payments_supported_country_codes_for_second_version_of_tracking_api',
array( 'US', 'AU', 'CA', 'FR', 'DE', 'IT', 'ES' )
array( 'US', 'AU', 'CA', 'FR', 'DE', 'IT', 'ES', 'GB' )
);
},
'order-tracking.should-use-second-version-of-api' => static function ( ContainerInterface $container ): bool {

View file

@ -28,7 +28,7 @@ class PayLaterBlockModule implements ModuleInterface {
return apply_filters(
// phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
'woocommerce.feature-flags.woocommerce_paypal_payments.paylater_block_enabled',
getenv( 'PCP_PAYLATER_BLOCK' ) !== '0'
getenv( 'PCP_PAYLATER_BLOCK' ) === '1'
);
}

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(