Installation
If you’re looking for information on how to integrate the SDK, check out our
Universal Checkout integration guide.
Please review the Content Security Policy (CSP) recommendations before installing!
With npm (recommended)
Our Web SDK is available on npm under the name @primer-io/checkout-web
.
This package includes TypeScript definitions.
BASH
Then import Primer
in your application
TS
With our CDN
Include the Primer.min.js
script on the page where you want the checkout to be rendered. Ensure that you’re providing the desired version in the script tag. For example, using v2.54.0
:
HTML
Primer.min.js
will add the Primer
object to the global scope.
TS