Skip to content

CryptumPay WidgetAccept Crypto Payments Seamlessly

Integrate cryptocurrency payments into your website with a simple, elegant widget. No complex blockchain integration required.

CryptumPay Widget

Quick Example

Add cryptocurrency payments to your site in just a few lines:

html
<!-- Load the widget -->
<script
  src="https://cdn.cryptumpay.com/2.3.2/widget.min.js"
  async
  integrity="sha384-jOAC1EYj7n6L3AUMR8dzHWi2B64sOghCmTyjCR2sqlZr4vw3YbabmSnHVyjnx8i6"
  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>

Why CryptumPay Widget?

Easy Backend Integration

Use our Node.js SDK to create orders from your backend:

typescript
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'
});

Withdrawals via API

Use the same SDK to withdraw cryptocurrency to an external address:

typescript
// Create withdrawal
const withdraw = await client.withdraw({
  currency: 'usdt',
  blockchain: 'bsc',
  address: '0xYOUR_WALLET_ADDRESS',
  amount: '100.00',
});

const { id } = withdraw.data;

// Check status
const status = await client.getWithdrawal({ id });
console.log(status.data.status); // 'created' | 'pending' | 'finished' | 'failed'

TIP

Withdrawals require an IP whitelist configured for your API key. See Withdrawals →

Flexible Integration Options

Choose the use case that fits your needs:

  • Donations, Account Top-ups
  • E-commerce
  • Custom Business Logic
  • Without Widget

Trusted by Merchants Worldwide

CryptumPay Widget is used by merchants globally to accept cryptocurrency payments securely and efficiently.

Released under the MIT License.