High-performance content delivery network for modern applications
Complete payment gateway solution with UPI, cards, and wallet support for Indian businesses.
E-commerce platform SDK for building modern online stores with advanced features.
Secure and elegant payment solution for UPI payments in India
Modern, secure, and elegant payment SDK for web applications
https://cdn.brighthustle.in/sdk/js/dhanyatra-sdk.min.js
https://cdn.brighthustle.in/sdk/js/dhanyatra-sdk.js
<script src="https://cdn.brighthustle.in/sdk/js/dhanyatra-sdk.min.js"></script>
<script>
// Initialize the SDK
const dhanyatra = new DhanyatraSDK({
apiKey: 'your-api-key',
environment: 'production' // or 'sandbox'
});
// Open payment interface
dhanyatra.openPayment({
amount: 100, // Amount in rupees
order: {
id: 'ORDER_123',
description: 'Product purchase'
},
customer: {
name: 'John Doe',
email: 'john@example.com',
phone: '+91 9876543210'
}
}).then(function(response) {
console.log('Payment successful:', response);
}).catch(function(error) {
console.error('Payment failed:', error);
});
</script>
sha256-/Gc7crKlZ9tX+qohjMsQEu9Vhq7pA7krXf9NWJk3NEU=