Build with Davspay

Everything you need to integrate payments into your application. Powerful APIs, comprehensive documentation, and world-class support.

Start Accepting Payments in Minutes

Node.js
<span class="comment">// Install the Davspay SDK</span>
<span class="comment">// npm install @davspay/node-sdk</span>

<span class="keyword">const</span> <span class="function">Davspay</span> = <span class="function">require</span>(<span class="string">'@davspay/node-sdk'</span>);

<span class="comment">// Initialize with your API key</span>
<span class="keyword">const</span> davspay = <span class="keyword">new</span> <span class="function">Davspay</span>({
  apiKey: <span class="string">'your_api_key_here'</span>,
  environment: <span class="string">'production'</span>
});

<span class="comment">// Create a payment</span>
<span class="keyword">const</span> payment = <span class="keyword">await</span> davspay.payments.<span class="function">create</span>({
  amount: <span class="number">1000</span>, <span class="comment">// Amount in paise (₹10.00)</span>
  currency: <span class="string">'INR'</span>,
  customer: {
    email: <span class="string">'customer@example.com'</span>,
    phone: <span class="string">'+919876543210'</span>
  },
  description: <span class="string">'Payment for Order #12345'</span>,
  callback_url: <span class="string">'https://yoursite.com/payment/callback'</span>
});

console.<span class="function">log</span>(<span class="string">'Payment URL:'</span>, payment.payment_url);

Why Developers Love Davspay

Fast Integration

Get started in minutes with our simple REST API

Secure by Default

Industry-standard encryption and security practices

Real-time Webhooks

Instant notifications for all payment events