HDFC MPGS Inbound Webhook
This API receives the webhook from HDFC MPGS and updates the payment transactions.
Request Body required
- Array [
- ]
authentication object required
Authentication information for the payment.
3ds object required
3D Secure authentication information.
Electronic Commerce Indicator for 3DS authentication.
Identifier for the 3DS authentication transaction.
3ds2 object required
3DS2 authentication information.
Identifier for the 3DS2 authentication transaction.
Version of the 3DS2 protocol.
Status of the 3DS2 authentication transaction.
Payment amount.
Timestamp of the payment initiation.
Identifier for the payment transaction.
Version of the authentication details.
device object required
Device details used for the payment.
User's browser information.
IP address of the user's device.
Entry point for the payment gateway.
Merchant identifier.
order object required
Order information for the payment.
Order amount.
Status of authentication for the order.
chargeback object
Chargeback details for the order.
Chargeback amount.
Currency of the chargeback.
Timestamp of order creation.
Currency of the order.
Identifier for the order.
Timestamp of the last order update.
Order amount in merchant's currency.
Merchant category code.
Currency used by the merchant.
Reference identifier for the order.
Status of the order (e.g., CAPTURED, FAILED).
Total authorized amount for the order.
Total captured amount for the order.
Total disbursed amount for the order.
Total refunded amount for the order.
response object required
Response details from the payment gateway.
Response code from the payment gateway.
Recommendation from the payment gateway.
Response code from the acquirer.
Message from the acquirer.
cardSecurityCode object
Card security code response.
Response code for the card security code from the acquirer.
Response code for the card security code from the gateway.
Result of the payment transaction (e.g., SUCCESS, FAILURE).
risk object
Risk assessment and response from the payment gateway.
response object
Risk assessment response from the payment gateway.
Risk assessment response code from the payment gateway.
review object
Review details for the risk assessment.
Decision made for the review.
Additional note for the review.
rule object[]
Rules applied for the risk assessment.
Data associated with the rule.
Name of the rule.
Recommendation based on the rule.
Type of the rule.
sourceOfFunds object required
Source of funds for the payment.
provided object required
Provided source of funds information.
card object required
Card information for the provided source of funds.
Brand of the card (e.g., VISA).
expiry object required
Expiry date of the card.
Expiry month of the card.
Expiry year of the card.
Funding method for the card (e.g., CREDIT, DEBIT).
Issuer of the card.
Masked card number.
Card scheme (e.g., VISA).
Storage status of the card (e.g., NOT_STORED).
Type of the source of funds (e.g., CARD).
Timestamp of the last update for the payment.
Timestamp when the payment was recorded.
transaction object required
Transaction details of the payment.
acquirer object required
Acquirer details for the transaction.
Batch number of the transaction.
Date of the transaction.
Identifier of the acquirer.
Merchant identifier of the acquirer.
Settlement date of the transaction.
Timezone of the transaction.
Identifier of the transaction.
Transaction amount.
Status of authentication for the transaction.
Authorization code for the transaction.
Currency of the transaction.
Identifier for the transaction.
Receipt identifier for the transaction.
Reference identifier for the transaction.
Source of the transaction (e.g., INTERNET).
System Trace Audit Number (STAN) for the transaction.
Terminal identifier for the transaction.
Type of the transaction (e.g., PAYMENT).
Version of the payment request.
- 200
- 4XX
- 5XX
HDFC MPGS webhook received and processed successfully
HDFC MPGS webhook received and not processed successfully, the response will be as below
Schema
The HTTP error status
The message from the server explaining the error
error object
The HTTP error status
The message from the server explaining the error
This is the http status code
The transaction status
error object
The transaction status
The message from the server explaining the error
{}
When there is a problem on the server, the response will be as below
Schema
The HTTP error status
The message from the server explaining the error
{
"status": 500,
"error": "HTTP 500: Internal Server Error"
}