
Product
Socket Now Protects the Firefox Extension Ecosystem
Socket is bringing experimental protection to Firefox, scanning 97,000+ extensions in Mozilla's official directory for malware and risky updates.
@apiosk/checkout-core
Advanced tools
Shared checkout schema, rails, intent payload helpers, and webhook utilities for Apiosk checkout packages
@apiosk/checkout-coreShared checkout contract for all Apiosk checkout surfaces.
This package owns the schema and helper layer that the other checkout modules should agree on:
After publish:
npm install @apiosk/checkout-core
Before publish:
npm install ./subs/checkout-core
checkout-core is not a UI package. It should stay framework-neutral and avoid
React, Vue, DOM, and CSS concerns.
Use it when you need to:
import {
createCheckoutIntentPayload,
normalizeCheckoutConfig,
selectDefaultRail,
} from "@apiosk/checkout-core";
const config = normalizeCheckoutConfig({
merchantName: "Northstar Marketplace",
productName: "Automation bundle",
amountLabel: "24.95 EUR",
orderReference: "ord_2048",
rails: [
{ id: "credits", status: "live" },
{ id: "x402", status: "live" },
{ id: "agent", status: "pilot" },
],
callbacks: {
successUrl: "https://merchant.example/success",
cancelUrl: "https://merchant.example/cancel",
webhookUrl: "https://merchant.example/webhooks/apiosk",
statusUrl: "https://merchant.example/api/orders/ord_2048",
},
});
const payload = createCheckoutIntentPayload(config);
const defaultRail = selectDefaultRail(config.rails);
The normalizer accepts both:
merchantName, productName, amountLabelmerchant, order, appearance, and callbacksThat lets internal dashboard code migrate incrementally while external SDKs use the structured version from day one.
createCheckoutIntentPayload() produces the payload shape that the future
checkout API should accept at:
POST /v1/checkout/intentsGET /v1/checkout/intents/:idThis package is where that contract should evolve first.
Use createWebhookSignature() and verifyWebhookSignature() for server-side
signature handling:
import { verifyWebhookSignature } from "@apiosk/checkout-core";
const rawBody = '{"event":"checkout.intent.paid"}';
const signature = request.headers["x-apiosk-signature"];
const isValid = await verifyWebhookSignature(
rawBody,
signature,
process.env.APIOSK_WEBHOOK_SECRET,
);
Pass the raw request body string whenever possible.
FAQs
Shared checkout schema, rails, intent payload helpers, and webhook utilities for Apiosk checkout packages
The npm package @apiosk/checkout-core receives a total of 73 weekly downloads. As such, @apiosk/checkout-core popularity was classified as not popular.
We found that @apiosk/checkout-core demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Socket is bringing experimental protection to Firefox, scanning 97,000+ extensions in Mozilla's official directory for malware and risky updates.

Research
/Security News
Three compromised Rust crates pulled in a malicious dependency that downloaded and executed cross-platform malware during Cargo builds.

Research
/Security News
Socket uncovered 77 linked Firefox extensions, including 40 that steal wallet secrets or credentials and 37 deceptive sports-score shells.