Runnable examples for Primer Checkout on the web, and AI coding skills for web, iOS and Android.
| Example | What it shows |
|---|---|
| primer-checkout-basic | Minimal TypeScript and Vite integration with a toggle for custom styling. |
| primer-checkout-custom-form | React card form built from individual Primer input components. |
| primer-checkout-custom-layout | React layout that places card and PayPal in their own sections and groups the other payment methods. |
| primer-checkout-themes | Switching between eight visual themes with CSS variables (TypeScript and Vite). |
| primer-checkout-vaulted | Saving payment methods with the vault option, with a control to reset the session. |
| stripe-billing | Stripe Billing owns the subscription; Primer Checkout takes the first payment and Primer charges each renewal. |
| vault-manual-approval | Backend decides per payment whether to process with Stripe through Primer's PCI proxy or with Primer orchestration (Vault, manual approval). |
| sphere-tax | Real-time tax from Sphere: tax on each order, sales recorded in Sphere, refunds as credit notes. |
Every example is a standalone project that runs against your own Primer sandbox account. Open its folder, copy .env.example to .env and add the sandbox keys it lists, then run npm install and npm run dev. Each example's README has the details.
Skills for Claude Code and other AI coding assistants that cover Primer Checkout on web, iOS and Android. In Claude Code, add the marketplace, then install the plugin for your platform:
/plugin marketplace add primer-io/examples
/plugin install primer-web-components@primer-skills
/plugin install primer-ios-checkout@primer-skills
/plugin install primer-android-checkout@primer-skills
For other assistants, see claude-code-skills/README.md.
- Primer documentation covers all products and integrations, including the server-side APIs.
- The Primer GitHub organization hosts the iOS, Android and React Native SDKs.
Report problems with an example or a skill in GitHub issues.