Skip to content

Commit

Permalink
feat: add DemoStripeCardInfoAccordion
Browse files Browse the repository at this point in the history
Users will now be provided with info on how to use the Stripe test-card numbers on the CheckoutPage in demo mode.
  • Loading branch information
trevor-anderson committed Mar 14, 2024
1 parent a3b068d commit 3de0011
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/pages/CheckoutPage/CheckoutContent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import Text from "@mui/material/Typography";
import { FetchStateContextProvider } from "@/app/FetchStateContext";
import { usePageLayoutContext } from "@/app/PageLayoutContext/usePageLayoutContext";
import { TitleLogo, brandingClassNames } from "@/components/Branding";
import { DemoStripeCardInfoAccordion } from "@/components/DevTools/DemoStripeCardInfoAccordion";
import { CheckoutForm, type CheckoutFormProps } from "./CheckoutForm";
import { PaymentConfirmationInfo } from "./PaymentConfirmationInfo";
import { SubCostDetails } from "./SubCostDetails";
Expand Down Expand Up @@ -39,9 +40,10 @@ export const CheckoutContent = ({
<PaymentConfirmationInfo />
) : (
<>
<Text style={{ textAlign: "center", opacity: 0.75 }}>
You'll receive a confirmation email with receipt upon completion.
<Text style={{ textAlign: "center", opacity: 0.75, whiteSpace: "pre-line" }}>
{`You'll receive a confirmation email\nwith receipt upon completion.`}
</Text>
<DemoStripeCardInfoAccordion />
<Divider />
<FetchStateContextProvider>
<CheckoutForm onSuccessfulSubmit={onCheckoutCompletion} />
Expand Down

0 comments on commit 3de0011

Please sign in to comment.