#BastianInuk - ES module stripe init
1 messages · Page 1 of 1 (latest)
Good question, I am not that familiar with the differences here but I am looking in to it. Does that code not work for you or are you simply looking for a more familiar syntax?
I'm simply looking for a more familiar syntax as well as typing support
Apologies the server has gotten a bit busy and I am jumping between threads but I am still looking in to this.
I actually found a quick doc for doing this for Stripe.js , is this about what you are looking for? https://dev.to/stripe/importing-stripe-js-as-an-es-module-1ni
Hey, I use import for stripe, you can do the following
import Stripe from Stripe
const stripeClient = new Stripe("my_secret", {apiVersion: "version you want"})