Quick Integration
Add cryptocurrency payments to your website in minutes with our CDN-hosted widget. No build tools required.
Integrate cryptocurrency payments into your website with a simple, elegant widget. No complex blockchain integration required.
Add cryptocurrency payments to your site in just a few lines:
<!-- Load the widget -->
<script
src="https://cdn.cryptumpay.com/2.1.0/widget.min.js"
async
integrity="sha384-NnPaTbz0Hrc9z3aAQ+wGYBIvcasohADK8cU6TCOVQFkgbHA3XIxbLz0s2RDF94sO"
crossorigin="anonymous"
></script>
<!-- Add payment button -->
<div id="payment-button"></div>
<script>
document.addEventListener('CryptumPay:ready', (event) => {
const button = new event.detail.Button('payment-button');
button.setOptions({
projectId: 'your-project-id',
projectOrderTitle: 'Premium Subscription',
projectOrderDescription: 'Monthly subscription payment'
});
button.onFinishOrder((orderId, projectData) => {
console.log('Payment completed!', orderId);
// Redirect to success page or update UI
});
});
</script>Use our Node.js SDK to create orders from your backend:
import { CryptumPayClient, CryptumPaySigner } from '@cryptumpay/node-sdk';
const client = new CryptumPayClient(
new CryptumPaySigner(
process.env.CRYPTUMPAY_API_KEY,
process.env.CRYPTUMPAY_API_SECRET
)
);
const response = await client.createOrder({
title: 'Order #12345',
description: 'Shopping cart checkout',
fiatAmount: '99.99',
fiatCurrency: 'usd'
});Choose the use case that fits your needs:
CryptumPay Widget is used by merchants globally to accept cryptocurrency payments securely and efficiently.
Ready to Start?