The Stripe Card Form component for Retool Apps
An embedded Stripe card form.
An embedded payment form to securely submit collect and submit card information to Stripe. A token is returned that can be used to charge the card.
Settings
Stripe Card Form includes the following configurable options when building apps in the IDE.
Event handlersShow on desktopShow on mobileMaintain space when hiddenMarginAlways show in edit modeStripe publishable keyStyles |
Properties
All properties for Stripe Card Form with supported data types or values. You can write JavaScript almost anywhere in Retool to manipulate or read property values.
global
Whether the object is globally scoped for use in all app pages.
Whether the component is visible.
id
The unique identifier.
isHiddenOnDesktop
Whether the component is visible in the desktop layout.
isHiddenOnMobile
Whether the component is visible in the mobile layout.
maintainSpaceWhenHidden
Whether the component takes up space on the canvas if hidden
is true
.
pluginType
The plugin type.
showInEditor
Whether to remain visible in the editor if hidden
is true
.
stripePublishableKey
The Stripe publishable key with which to generate tokens.
stripeToken
The token generated by Stripe.
submitButtonText
The text displayed on the submit button.
Methods
JavaScript API methods for interacting with Stripe Card Form. You can write JavaScript almost anywhere in Retool and use methods to manipulate data and property values.
scrollIntoView
Scrolls the canvas or parent container so that the selected component appears in the visible area.
stripeCardForm.scrollIntoView(scrollIntoViewOptions)
Parameters
Events
Events are triggered by user interactions, such as clicking a button or entering a value. Use event handlers to trigger queries or other actions in response to events.
onStripeTokenCreated
A Stripe token is returned.