Elements(key, options?)
const elements = Elements(YOUR_CLIENT_KEY_HERE, {stripeKey: 'pk_XXX'});
Use Elements(clientKey, options?)
to create an instance of the Elements object. The Elements object is your entrypoint to the rest of the Elements.js SDK.
Method Parameters
clientKey required string
Your publishable client token which your backend must fetch.
options optional object
- stripeKey
string
your: Stripe publishable key. When this parameter is passed.Elements.js
will fallback using Stripe's tokenization endpoint when our tokenization service is unavailable.