mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-04 08:47:23 +08:00
Merge branch 'trunk' into PCP-2521-apple-pay-recurring-payments
# Conflicts: # modules/ppcp-save-payment-methods/src/SavePaymentMethodsModule.php
This commit is contained in:
commit
300e8f377c
5 changed files with 5 additions and 5 deletions
|
@ -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 {
|
||||
|
|
|
@ -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'
|
||||
);
|
||||
}
|
||||
|
||||
|
|
|
@ -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(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue