Stripe has official libraries for different programming languages and mobile platforms. There are also many more third-party libraries and plugins created by the Stripe community.
Client-side and UI libraries
You need to include Stripe.js on your checkout page by either adding the script tag to the head of your HTML file, or importing it from the stripe-js module:
Next, create an instance of the Stripe object by providing your publishable API key as the first parameter:
var stripe =Stripe(
Finally, create an instance of the Elements UI library:
All requests use your account API settings, unless you override the API version. The changelog lists every available version. Note that by default webhook events are structured according to your account API version, unless you set an API version during endpoint creation.
To override the API version, assign the version to the Stripe.api_version property:
Minor updates to our libraries are backwards compatible and are generally safe to upgrade to. Major updates often include breaking changes, which may require changes to your code when upgrading. A major version upgrade is sometimes required to use new features.
Major version upgrades may contain breaking changes. When upgrading, carefully review the library changelog, read the relevant migration guide, and test your integration.
Welcome to the Stripe Shell!
This is a graphical user interface of the Stripe CLI. You can use it to discover
webhook events and manage your Stripe resources. By pressing ctrl + ` you can
toggle it open from any page within the Stripe documentation.
- View supported commands:
- Listen for webhook events:
- Trigger webhook events:
- Call Stripe APIs: stripe [api resource] [api operation] (e.g. )