Skip to content
Back to skills

034 Programmatic Cb4abc34

ASecurity

1. **Programmatic Sessions** - Full API control 2. **Checkout Links** - No-code, shareable URLs 3. **Storefronts** - Hosted product pages

  • 9 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added October 11, 2026
developmentjavascriptgojavareactnextjsapifrontendbackend

Works with

  • api

Security analysis

A100/100

Scanned October 11, 2026

npx -y skills add tools-only/X-Skills --skill 034-programmatic_cb4abc34 --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of 034 Programmatic Cb4abc34?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for 034 Programmatic Cb4abc34
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/tools-only-034-programmatic-cb4abc34/badge)](https://www.skillsdirectory.com/skills/tools-only-034-programmatic-cb4abc34)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

SKILL.md
# Creem.io Checkouts

## Checkout Options

1. **Programmatic Sessions** - Full API control
2. **Checkout Links** - No-code, shareable URLs
3. **Storefronts** - Hosted product pages

## Create Checkout Session

```javascript
const session = await creem.checkout.sessions.create({
  product_id: 'prod_xxx',
  success_url: 'https://example.com/success?session_id={CHECKOUT_SESSION_ID}',
  cancel_url: 'https://example.com/cancel',

  // Optional parameters
  customer_email: 'user@example.com',
  customer_id: 'cus_xxx',           // Existing customer
  quantity: 1,                       // For seat-based products
  discount_code: 'LAUNCH20',         // Pre-apply discount
  metadata: {
    order_id: '123',
    referral_code: 'abc'
  },

  // Custom fields
  custom_fields: [
    { key: 'company', label: 'Company Name', required: true }
  ]
});

// Redirect user to checkout
redirect(session.url);
```

## Checkout Customization

Configure in dashboard or via API:

- **Branding**: Logo, colors, themes
- **Email Receipts**: Custom templates
- **Localization**: Auto-detect or force language (42 supported)
- **Custom Fields**: Collect additional data

## Retrieve Session

```javascript
// GET /v1/checkout/sessions/:id
const session = await creem.checkout.sessions.retrieve('cs_xxx');
// Returns: { id, status, customer_id, product_id, amount, metadata, ... }
```

## Success URL Parameters

Creem replaces `{CHECKOUT_SESSION_ID}` in success URL:

```javascript
// Frontend: parse session ID from URL
const urlParams = new URLSearchParams(window.location.search);
const sessionId = urlParams.get('session_id');

// Backend: verify and fulfill
const session = await creem.checkout.sessions.retrieve(sessionId);
if (session.status === 'complete') {
  await fulfillOrder(session);
}
```

## No-Code Checkout Links

Create in dashboard - shareable URLs for any product. Good for:
- Social media links
- Email campaigns
- Quick sales without integration

## Storefronts

Hosted product pages - display multiple products without custom website:

1. Configure storefront in dashboard
2. Add products to display
3. Share storefront URL
4. Customers browse and checkout

## Cart Abandonment Recovery

Enable in dashboard - automatic emails sent when checkout abandoned:
- Configurable delay before sending
- Customizable email content
- Include discount code incentive

## Embedding (Coming)

For embedded checkout in your site, see SDK adapters:
- Next.js Adapter
- React components

See `references/creem/sdk.md` for implementation details.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.