2
0

feat(editor): Payment input

This commit is contained in:
Baptiste Arnaud
2022-05-24 14:25:15 -07:00
parent 91ea637a08
commit 3a6ca3dbde
35 changed files with 1516 additions and 52 deletions

View File

@ -1,5 +1,5 @@
import { User } from 'db'
import { loadStripe } from '@stripe/stripe-js'
import { loadStripe } from '@stripe/stripe-js/pure'
import { sendRequest } from 'utils'
type Props = {

View File

@ -37,6 +37,7 @@ import {
defaultEmbedBubbleContent,
ChoiceInputStep,
ConditionStep,
defaultPaymentInputOptions,
} from 'models'
import { Typebot } from 'models'
import useSWR from 'swr'
@ -320,6 +321,8 @@ const parseDefaultStepOptions = (type: StepWithOptionsType): StepOptions => {
return defaultUrlInputOptions
case InputStepType.CHOICE:
return defaultChoiceInputOptions
case InputStepType.PAYMENT:
return defaultPaymentInputOptions
case LogicStepType.SET_VARIABLE:
return defaultSetVariablesOptions
case LogicStepType.REDIRECT: