HoadaPay UPI Payment Integration Example

Integration Parameters (UPI Mode):
Client ID: AWv4zPcSeOlkAVTj
Client Secret: e3a2b659-5ecb-4cea-9c22-ca30440ef008

1. Order Creation (Generate Payment Link)

Request Parameters:

{
    "amount": 500,
    "txnNote": "Test product purchase",
    "mobile": "9848453221",
    "order_id": "order_1779391807_1074",
    "redirectionURL": "https:\/\/www.google.com"
}

Request URL:
https://tp-upi.hoadapay.com/api/v1/order

Request Method:
POST

Pre-signature Content:
No signature required (authentication uses Client ID/Secret only)

Request Body:

{"amount":500,"txnNote":"Test product purchase","mobile":"9848453221","order_id":"order_1779391807_1074","redirectionURL":"https:\/\/www.google.com"}

Raw Response:

Parsed Response:

❌ Order creation failed: Unknown error

2. Order Status Query Example

Skipping status query because order creation failed.


Example execution completed. Please view source for the full integration class.