Payment Status
Payment Status Endpoint:
This endpoint is useful for initiating payments with a custom UPI Intent and redirecting customers after they complete the payment.
Code Example: Axios POST Request
Below is an example of how to use Axios to check payment status:
Key Points
mid: Your merchant identifier.
order_id: A unique string for transaction tracking.
Authorization: Basic base64(public_key:secret_key).
Ensure all placeholders (e.g., "Your Merchant ID") are replaced with actual values before executing
Request Body Parameters:
POST
/v1/payments/checkPaymentStatus
Headers
Content-Type
application/x-www-form-urlencoded
Authorization
Basic Auth
Body
mid
string
Merchant ID assigned to you by UPITranzact.
ABC
Yes
order_id
string
A unique identifier for the order.
bd79da4cccff1
Yes
Authorization:
The request must include an Authorization header with a Base64 encoded string containing your public_key
and secret_key
in the format public_key:secret_key
. Here's an example of how to generate the Authorization header:
Example:
For example, if your public_key
is your_public_key
and your secret_key
is your_secret_key
, you would encode this into Base64 and use it as the Authorization header.
Example Authorization Header (Base64 encoded):
Response
Error Codes:
400: Bad Request - Missing required parameters or invalid data.
401: Unauthorized - Invalid or missing
Authorization
Basic Auth.404: Not Found - An issue occurred on the server side.
409: Conflict - The request could not be processed due to a conflict with the current state of the resource.
500: Internal Server Error - An issue occurred on the server side.
Last updated