Butter Form Element (Stripe) (cloned)
Using Node Package Manager
npm install --save @butterpayments/butter-vaulting-react
Using Yarn
yarn add @butterpayments/butter-vaulting-react
Element Property | Description |
---|---|
options | A configuration to setup the Butter Form. |
style | JSX object used to style the form. |
Element Property | Description |
---|---|
butterMerchantKey | A unique key provided by Butter used to scope requests to approved merchant proxy endpoints. |
butterSourceId | A unique key provided by Butter used to scope vaulted cards in merchant containers or merchant sub-brand containers. |
stripePublishableKey | The public API key generated in Stripe. (Link) |
stripePaymentIntentId | The payment intent ID from the create payment intent response. (Link) |
stripeClientSecret | The client secret from the create payment intent response. (Link) |
event: returns an instance of submit event or Error
paymentIntent: returns a confrim payment intent object.
enhancedData: returns an enchanced data object about the payment method.
Example using Tailwind CSS
Alternate payment method buttons such as Apple Pay, Google Pay, and Paypal will automatically populate within the Butter Form Element as configured in your Stripe account.
Card validation is statically defined and cannot be changed.
Card Number
- 16 Digits
- Valid Issuer (First 4 digits of card)
Expiration
- Must not be expired or greater than 19 years in the future