Slash Payment Processing is in beta and not enabled for all accounts. Contact
support@joinslash.com to get access.
@slashfi/checkout-js is a zero-dependency browser SDK for embedding the
Slash hosted checkout: mint a checkout session server-side, then mount its
hosted url on your page.
Payment method availability is configured when your backend creates the
checkout session. The browser SDK does not expose payment-method controls.
Install
loadSlashCheckout()
Loads the checkout client. Async so a CDN-hosted build can be swapped in
later without an API change.
createEmbeddedCheckoutPage(options)
Creates one embedded checkout instance. Only one can be live per page at
a time — call destroy() before creating another.
Error codes
Instance methods
React
There is no React wrapper package — mount the SDK from an effect:createEmbeddedCheckoutPage calls, so the second mount’s
create waits for the first to settle — and the first mount’s cancelled
destroy() releases the one-per-page slot before the second create
proceeds. No card data passes through the SDK or your page — it is
entered inside the payment iframe.