mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-08-30 05:00:51 +08:00
Display only Credit Cards for Personal merchants in onboarding
This commit is contained in:
parent
b3135764b1
commit
d9e9f6aae0
1 changed files with 3 additions and 14 deletions
|
@ -59,29 +59,18 @@ const StepPaymentMethods = () => {
|
|||
export default StepPaymentMethods;
|
||||
|
||||
const PaymentStepTitle = () => {
|
||||
const { storeCountry } = CommonHooks.useWooSettings();
|
||||
|
||||
if ( 'US' === storeCountry ) {
|
||||
return __(
|
||||
'Add Expanded Checkout for More Ways to Pay',
|
||||
'woocommerce-paypal-payments'
|
||||
);
|
||||
}
|
||||
|
||||
return __(
|
||||
'Add optional payment methods to your Checkout',
|
||||
'woocommerce-paypal-payments'
|
||||
);
|
||||
return __( 'Add Credit and Debit Cards', 'woocommerce-paypal-payments' );
|
||||
};
|
||||
|
||||
const OptionalMethodDescription = () => {
|
||||
const { isCasualSeller } = OnboardingHooks.useBusiness();
|
||||
const { storeCountry, storeCurrency } = CommonHooks.useWooSettings();
|
||||
const { canUseCardPayments } = OnboardingHooks.useFlags();
|
||||
|
||||
return (
|
||||
<PaymentFlow
|
||||
onlyOptional={ true }
|
||||
useAcdc={ canUseCardPayments }
|
||||
useAcdc={ ! isCasualSeller && canUseCardPayments }
|
||||
isFastlane={ true }
|
||||
isPayLater={ true }
|
||||
storeCountry={ storeCountry }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue