Skip to main content

Stripe Element

<sc-stripe-element></sc-stripe-element>

This component let users create stripe element.

Component Codex

Properties

PropertyDescriptionTypeDefault
disabledWhether this field is disabledboolean
formStateThe form state"confirmed" | "confirming" | "draft" | "expired" | "failure" | "finalizing" | "idle" | "loading" | "paid" | "paying" | "redirecting" | "updating"
hasFocusInputs focusboolean
labelThe input's label. Alternatively, you can use the label slot.string
modeMode for the payment"live" | "test"'live'
orderThe checkout session object for finalizing intentsCheckout
secureTextThe input's help text. Alternatively, you can use the help-text slot.string''
selectedProcessorIdThe selected processor id"paypal" | "paypal-card" | "stripe"
showLabelShould we show the labelbooleantrue
sizeThe input's size."large" | "medium" | "small"'medium'

Events

EventDescriptionType
scPaidThe order/invoice was paid forCustomEvent<void>
scPaymentInfoAddedPayment information was addedCustomEvent<PaymentInfoAddedParams>
scSetStateSet the stateCustomEvent<"EXPIRE" | "FETCH" | "FINALIZE" | "PAID" | "PAYING" | "REJECT" | "RESOLVE">

Methods

confirmCardPayment(secret: any) => Promise<any>

Confirm card payment

confirmCardSetup(secret: any) => Promise<any>

Confirm card setup.