2
0

(paymentInput) Handle Stripe redirection

Closes #631
This commit is contained in:
Baptiste Arnaud
2023-07-27 17:25:02 +02:00
parent e499478dee
commit c99298e49b
15 changed files with 109 additions and 21 deletions

View File

@ -42,6 +42,7 @@ export const paymentInputOptionsSchema = optionBaseSchema.merge(
credentialsId: z.string().optional(),
currency: z.string(),
amount: z.string().optional(),
retryMessageContent: z.string().optional(),
})
)
@ -77,6 +78,7 @@ export const stripeCredentialsSchema = z
export const defaultPaymentInputOptions: PaymentInputOptions = {
provider: PaymentProvider.STRIPE,
labels: { button: 'Pay', success: 'Success' },
retryMessageContent: 'Payment failed. Please, try again.',
currency: 'USD',
}