-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Cut over to Stripe PaymentElement (#3665)
- Loading branch information
1 parent
371a218
commit 02d5b6b
Showing
17 changed files
with
629 additions
and
86 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
40 changes: 40 additions & 0 deletions
40
src/pages/PlanPage/subRoutes/CurrentOrgPlan/BillingDetails/PaymentCard/BankInformation.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
import { z } from 'zod' | ||
|
||
import bankLogo from 'assets/billing/bank.svg' | ||
import { USBankAccountSchema } from 'services/account' | ||
|
||
interface BankInformationProps { | ||
usBankAccount: z.infer<typeof USBankAccountSchema> | ||
nextBillingDisplayDate: string | null | ||
} | ||
|
||
function BankInformation({ | ||
usBankAccount, | ||
nextBillingDisplayDate, | ||
}: BankInformationProps) { | ||
return ( | ||
<div className="flex flex-col gap-3"> | ||
<div className="flex gap-2"> | ||
<img src={bankLogo} alt="bank logo" /> | ||
<div className="ml-1 flex flex-col self-center"> | ||
<b> | ||
{usBankAccount?.bankName} | ||
•••• | ||
{usBankAccount?.last4} | ||
</b> | ||
</div> | ||
</div> | ||
{nextBillingDisplayDate && ( | ||
<p className="text-sm text-ds-gray-quinary"> | ||
Your next billing date is{' '} | ||
<span className="text-ds-gray-octonary"> | ||
{nextBillingDisplayDate} | ||
</span> | ||
. | ||
</p> | ||
)} | ||
</div> | ||
) | ||
} | ||
|
||
export default BankInformation |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.