Developer platform template

Welcome to your team’s new developer platform

Sign up Log in

Get started in 5 minutes

Setting up your first API call should be the easiest part of getting started. With clear endpoints, copy-paste-ready examples, and quick authentication, you’ll be up and running in minutes—not hours.

No guesswork, no complexity—just your first successful call, fast.

Get started API reference

index.js
import { DigiPay } from '@digipay-sdk/inline-js';

const digiPay = new DigiPay({
  publicKey: 'pk_live_xxxxxxxxx',
  description: 'Premium Package Subscription',
  amount: '49.99',
  currency: 'PI',
  metadata: {
    orderId: '1234567890',
    userId: 'user_abc123',
    webhookUrl: 'https://yoursite.com/webhook'
  },
  customer: {
    email: '[email protected]',
    name: 'John Doe'
  },
  onSuccess: (transaction) => {
    console.log('Payment successful!', transaction);
  },
  onCancel: () => {
    console.log('Payment cancelled');
  },
  onError: (error) => {
    console.error('Payment failed:', error);
  }
});

digiPay.open();

Learn more about the developer platform

Read guides, watch tutorials, and learn more about working with the developer platform and integrating it with your own stack.

Guides Documentation

Join a community of over 3,000 developers

Join our Discord community or create your first PR in just a few steps.

Discord community

Join our Discord community to post questions, get help, and share resources with over 3,000 like-minded developers.

GitHub

Our product is 100% open source and built by developers just like you. Head to our GitHub repository to learn how to submit your first PR.

Last updated