2
0

feat(input): ️ Better payment accessibility

This commit is contained in:
Baptiste Arnaud
2022-06-01 08:47:15 +02:00
parent 89d17a9ed3
commit c1461f0758
8 changed files with 78 additions and 31 deletions

View File

@ -144,7 +144,7 @@ export type PaymentInputOptions = OptionBase & {
email?: string
phoneNumber?: string
}
labels: { button: string }
labels: { button: string; success?: string }
}
const defaultButtonLabel = 'Send'
@ -198,6 +198,6 @@ export const defaultChoiceInputOptions: ChoiceInputOptions = {
export const defaultPaymentInputOptions: PaymentInputOptions = {
provider: PaymentProvider.STRIPE,
labels: { button: 'Pay' },
labels: { button: 'Pay', success: 'Success' },
currency: 'USD',
}