fix(bot): 🚑️ Stripe form isn't showing
This commit is contained in:
@@ -42,8 +42,9 @@ export const StripePaymentForm = ({ options, onSuccess }: Props) => {
|
|||||||
description: error.name + ' ' + error.message,
|
description: error.name + ' ' + error.message,
|
||||||
details: error.message,
|
details: error.message,
|
||||||
})
|
})
|
||||||
if (!data || !frameDocument || !frameWindow?.Stripe) return
|
if (!data || !frameDocument) return
|
||||||
await initStripe(frameDocument)
|
await initStripe(frameDocument)
|
||||||
|
if (!frameWindow?.Stripe) return
|
||||||
setStripe(frameWindow.Stripe(data.publicKey))
|
setStripe(frameWindow.Stripe(data.publicKey))
|
||||||
setClientSecret(data.clientSecret)
|
setClientSecret(data.clientSecret)
|
||||||
setAmountLabel(data.amountLabel)
|
setAmountLabel(data.amountLabel)
|
||||||
|
|||||||
Reference in New Issue
Block a user