Slash Payment Processing is in beta and not enabled for all accounts. Contact
support@joinslash.com to get access.
1. Create a session
CallPOST /checkout-session with your API key. amount is in cents;
currency supports usd. The X-Idempotency-Key header is required —
retrying with the same key returns the existing session instead of
creating a duplicate.
url:
2. Embed it
Install the SDK and mount theurl. Point fetchUrl at your own backend
endpoint that creates the session, so your API key stays server-side.
3. Fulfill on the webhook
Fulfill the order whencheckout_session.completed arrives. Your
customMetadata is echoed back on the event body:
slash-webhook-signature header before fulfilling. Every delivery is
signed over the raw request body with Slash’s
public RSA key — see
webhook signing for details:
eventId (or your own
customMetadata key) — and don’t rely on webhooks alone:
GET /checkout-session/{id} returning status: "complete" is
equivalent to the webhook and catches any missed deliveries.
Full SDK options are in the checkout-js reference.