Skip to main content
GET
cURL

Overview

Process a payment request using a specific payment method. This endpoint allows you to handle payment requests with different payment methods like credit cards, digital wallets, or alternative payment options.

API Endpoint

Authentication

  • HTTP Header: X-API-Key with your API key obtained from the dashboard
  • Content Type: application/json

Path Parameters

Payment Methods

The following payment methods are supported:

Response

Returns payment handling result including:

Processing Information

  • Status: Payment processing status
  • Transaction ID: Generated transaction identifier
  • Redirect URL: URL for customer to complete payment (if required)
  • Processing Time: Estimated processing duration

Payment Details

  • Method Used: Confirmed payment method
  • Amount: Transaction amount and currency
  • Fees: Processing fees (if applicable)
  • Exchange Rate: Currency conversion rate (if applicable)

Example Request

Example Response

Response Status Codes

Error Response Examples

Invalid Payment Method

Payment Request Not Found

Unprocessable Payment Method

Payment Method Specific Handling

Credit Card Processing

  • Initiates 3D Secure authentication if required
  • Returns redirect URL for card verification
  • Processes payment immediately for non-3DS cards

Digital Wallet Processing

  • Validates wallet availability on customer device
  • Initiates biometric authentication flow
  • Returns wallet-specific payment session

UPI Processing

  • Validates UPI ID format and availability
  • Generates UPI payment link
  • Supports QR code generation for mobile apps

Implementation Examples

JavaScript/Node.js

Payment Method Selection

Integration Patterns

Progressive Enhancement

  1. Start with Basic: Begin with credit card as fallback
  2. Detect Capabilities: Check for wallet/UPI support
  3. Offer Options: Present available payment methods
  4. Handle Gracefully: Fall back if preferred method fails

Mobile Optimization

  • Wallet Priority: Prioritize digital wallets on mobile
  • UPI for India: Offer UPI as primary option in Indian market
  • Touch/Face ID: Leverage biometric authentication
  • App Deep Links: Support payment app integration

Best Practices

Payment Method Selection

  • Device Detection: Choose methods based on customer device
  • Geographic Optimization: Offer region-appropriate methods
  • Fallback Strategy: Always provide alternative payment options
  • User Preference: Remember customer’s preferred methods

Error Handling

  • Graceful Degradation: Fall back to alternative methods
  • Clear Messaging: Provide helpful error messages
  • Retry Logic: Implement appropriate retry mechanisms
  • Support Integration: Link to customer support for complex issues

Security

  • Method Validation: Verify payment method availability before processing
  • Timeout Handling: Implement appropriate timeouts for each method
  • Fraud Detection: Monitor for suspicious payment method patterns
  • Compliance: Ensure compliance with payment method regulations

Path Parameters

id
integer<int64>
required
paymentMethod
enum<integer>
required
Available options:
0,
1,
2,
3,
4,
5,
6,
7,
8,
9,
10,
11,
13,
14,
15,
16,
17,
18,
19,
20

Response

OK