Developer platform template
Welcome to your team’s new developer platform
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();

Join a community of over 3,000 developers
Join our Discord community or create your first PR in just a few steps.
Last updated


