Grow your on-chain business with the most powerful API for crypto payments.
Get paid on:
Diagonal is the simplest and most secure way to integrate
crypto subscriptions, tailored to your business needs.
Fixed, seat, or usage-based crypto subscriptions, Diagonal powers your business.
Diagonal is non-custodial, and we can only charge your customers on your behalf.
Unify your fiat and crypto payments stacks, by connecting Diagonal to your PPS (eg. Stripe).
Diagonal provides a single, elegant interface that abstracts dozens of crypto payments integrations.
curl -X POST https://api.test.diagonal.finance/v1/checkout/sessions \
-H "X-API-Key: secret_test_d3m0k4ys28" \
-d success_url=example.com/success \
-d cancel_url=example.com/cancel \
-d amount=10 \
-d "subscription[interval]"=month \
-d "subscription[interval_count]"=1
import { Diagonal } from "diagonal"
const diagonal = new Diagonal("secret_test_d3m0k4ys28");
// receive charge signature request via Webhook
const chargeSignatureRequest = { ... }
// sign and attest to the request, using your signing key
const signature = diagonal.signatures.sign(
chargeSignatureRequest, "0x64934cac2b46..."
);
const receipt = await diagonal.charges.capture(charge.id, signature);
Create a checkout session and get paid in the tokens of your choice, on multiple chains, in just 7 lines of code.
Charge your customer without having to trust Diagonal, by signing and attesting to charge requests.
Create a checkout session and get paid in the tokens of your choice, on multiple chains, in just 7 lines of code.
curl -X POST https://api.test.diagonal.finance/v1/checkout/sessions \
-H "X-API-Key: secret_test_d3m0k4ys28" \
-d success_url=example.com/success \
-d cancel_url=example.com/cancel \
-d amount=10 \
-d "subscription[interval]"=month \
-d "subscription[interval_count]"=1
Charge your customer without having to trust Diagonal, by signing and attesting to charge requests.
import { Diagonal } from "diagonal"
const diagonal = new Diagonal("secret_test_d3m0k4ys28");
// receive charge signature request via Webhook
const chargeSignatureRequest = { ... }
// sign and attest to the request, using your signing key
const signature = diagonal.signatures.sign(
chargeSignatureRequest, "0x64934cac2b46..."
);
const receipt = await diagonal.charges.capture(charge.id, signature);
Diagonal enables you to accept crypto subscriptions with seamless and flexible integrations.
Integrate Diagonal Hosted Checkout with just 7 lines of code and focus on running your business.
Let your customers subscribe on any device, in just 5 simple clicks.
Customize the checkout experience with your branding and messaging.
Leverage Diagonal Merchant Dashboard to get paid and manage your business without writing any code.
Create and share Links with your customers and get paid without writing any code.
Monitor your on-chain business and manage your customers and subscriptions.