Skip to content

Adding new banners for BNPL to show upon legacy checkout deprecation #4328

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 2 commits into
base: develop
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
87 changes: 87 additions & 0 deletions client/settings/payment-settings/promotional-banner-section.js
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,93 @@
}
}

// const BNPLForNewMerchantBanner = () => (
// <CardBody>
// <CardInner>
// <CardColumn>
// <NewPill>
// { __( 'New', 'woocommerce-gateway-stripe' ) }
// </NewPill>
// <h4>
// { __(
// 'Try Buy Now, Pay Later with a limited-time promotional rate',
// 'woocommerce-gateway-stripe'
// ) }
// </h4>
// <p>
// { __(
// 'Offer customers flexible pay-over-time options, now enabled in your store’s checkout with a X% transaction fee for the next 3 months.',
// 'woocommerce-gateway-stripe'
// ) }
// </p>
// </CardColumn>
// <CardColumn>
// <BannerIllustration
// src={ bannerIllustration }
// alt={ __(
// 'New Checkout',
// 'woocommerce-gateway-stripe'
// ) }
// />
// </CardColumn>
// </CardInner>
// <ButtonsRow>
// <MainCTALink
// variant="secondary"
// data-testid="enable-the-new-checkout"
// onClick={ handleButtonClick }
// >
// { __(
// 'Learn more',
// 'woocommerce-gateway-stripe'
// ) }
// </MainCTALink>
// <DismissButton
// variant="secondary"
// onClick={ handleBannerDismiss }
// data-testid="dismiss"
// >
// { __( 'Dismiss', 'woocommerce-gateway-stripe' ) }
// </DismissButton>
// </ButtonsRow>
// </CardBody>
// );
const BNPLForExistingMerchantBanner = () => (
<CardBody>
<CardInner>
<CardColumn>
<NewPill>
{ __( 'New', 'woocommerce-gateway-stripe' ) }
</NewPill>
<h4>
{ __(
'Buy Now, Pay Later is now live on your store',
'woocommerce-gateway-stripe'
) }
</h4>
<p>
{ __(

Check failure on line 379 in client/settings/payment-settings/promotional-banner-section.js

View workflow job for this annotation

GitHub Actions / JS & CSS linting

Translations should not contain collapsible whitespace (\n)
'Offering flexible pay-over-time options can boost conversion and increase order values. BNPL options are auto-enabled with Stripe. \n',
'woocommerce-gateway-stripe'
) }
</p>
</CardColumn>
<CardColumn>
<BannerIllustration
src={ bannerIllustration }
alt={ __(
'New Checkout',
'woocommerce-gateway-stripe'
) }
/>
</CardColumn>
</CardInner>
</CardBody>
);

// BannerContent = <BNPLForNewMerchantBanner />;
BannerContent = <BNPLForExistingMerchantBanner />;

return (
BannerContent && (
<BannerCard data-testid="promotional-banner-card">
Expand Down
Loading