mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-05 08:59:14 +08:00
Merge branch 'trunk' into PCP-2006-google-pay-settings-improvements
This commit is contained in:
commit
a4ddb81d54
18 changed files with 298 additions and 116 deletions
|
@ -202,8 +202,10 @@ return array(
|
|||
|
||||
'wcgateway.settings' => SingletonDecorator::make(
|
||||
static function ( ContainerInterface $container ): Settings {
|
||||
$default_button_locations = $container->get( 'wcgateway.button.default-locations' );
|
||||
return new Settings( $default_button_locations );
|
||||
return new Settings(
|
||||
$container->get( 'wcgateway.button.default-locations' ),
|
||||
$container->get( 'wcgateway.settings.dcc-gateway-title.default' )
|
||||
);
|
||||
}
|
||||
),
|
||||
'wcgateway.notice.connect' => static function ( ContainerInterface $container ): ConnectAdminNotice {
|
||||
|
@ -489,7 +491,7 @@ return array(
|
|||
'This controls the title which the user sees during checkout.',
|
||||
'woocommerce-paypal-payments'
|
||||
),
|
||||
'default' => __( 'Credit Cards', 'woocommerce-paypal-payments' ),
|
||||
'default' => $container->get( 'wcgateway.settings.dcc-gateway-title.default' ),
|
||||
'desc_tip' => true,
|
||||
'screens' => array(
|
||||
State::STATE_ONBOARDED,
|
||||
|
@ -1190,6 +1192,10 @@ return array(
|
|||
return $vaulting_label;
|
||||
},
|
||||
|
||||
'wcgateway.settings.dcc-gateway-title.default' => static function ( ContainerInterface $container ): string {
|
||||
return __( 'Debit & Credit Cards', 'woocommerce-paypal-payments' );
|
||||
},
|
||||
|
||||
'wcgateway.settings.card_billing_data_mode.default' => static function ( ContainerInterface $container ): string {
|
||||
return $container->get( 'api.shop.is-latin-america' ) ? CardBillingMode::MINIMAL_INPUT : CardBillingMode::USE_WC;
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue