Show the vault at the specified container, and get an instance of PrimerVaultManager,
which is used to manage the customer's payment methods stored in the Primer Vault.
The placeholder text to display in the cardholder name input field. It can be either a string or a function that returns a string. The function receives an options object as first argument.
The placeholder text to display in the cardholder number input field. It can be either a string or a function that returns a string. The function receives an options object as first argument.
The placeholder text to display in the expiry date input field. It can be either a string or a function that returns a string. The function receives an options object as first argument.
The placeholder text to display in the CVV input field. It can be either a string or a function that returns a string. The function receives an options object as first argument.
Drop-In Checkout allows you to use your own submit button for submitting forms. By default, the built-in submit button will be favored.
Note that when disabling the built-in submit button and using your own custom submit button, it is required to implement the submit function in order to notify Drop-In Checkout of form submissions.
When using your own custom submit button, it's important to use the following callbacks to ensure that your submit button is in the correct state and in sync with the checkout as your customers interact with it.
123456789101112131415161718192021222324252627
const options ={/* Other options ... */submitButton:{useBuiltInButton:false,// Default to true// Callback for receiving the submit button's visible state in the current sceneonVisible(isVisible,context:{ currentSceneId }){// Show or hide your custom submit button},// Callback for receiving the submit button's disabled state in the current sceneonDisable(isDisabled,context:{ currentSceneId }){// Disable or enable your custom submit button},// Callback for receiving the submit button's loading state in the current sceneonLoading(isLoading,context:{ currentSceneId }){// Show your submit button in a loading state},// Callback for receiving the submit button's content in the current sceneonContentChange(content,context:{ currentSceneId }){// Set your submit button's content with either the content provided or your own custom content},},}