Simulate Payment
Use this API to simulate payment. To use this API you should first create an order using the Create Order API. Also, you need to create a payment with the same order.
Authorizations
Client app ID. You can find your app id in the Merchant Dashboard.
Client secret key. You can find your secret key in the Merchant Dashboard.
Headers
API version to be used.
Request ID for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to Cashfree.
An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions.
Body
Request parameters to simulate payment.
Entity type should be PAYMENTS, SUBS_PAYMENTS, SUBS_EXECUTION, SUBS_RESCHEDULE, or VBA_TRANSFER only.
PAYMENTS, SUBS_PAYMENTS, SUBS_EXECUTION, SUBS_RESCHEDULE, VBA_TRANSFER If the entity type is PAYMENTS, the entity_id will be the cf_payment_id. If the entity type is SUBS_PAYMENTS, the entity_id will be the payment_id. If the entity type is SUBS_EXECUTION, the entity_id will be the execution_id. If the entity type is SUBS_RESCHEDULE, the entity_id will be the merchant transaction ID of the charge. If the entity type is VBA_TRANSFER, the entity_id will be the vba_account_number.
Entity simulation contains payment_status and payment_error_code. For SUBS_EXECUTION, payment_status supports SUCCESS or FAILED only, and payment_error_code is required when the status is FAILED.
{
"payment_status": "FAILED",
"payment_error_code": "ISSUER_NOT_AVAILABLE"
}VBA simulation contains VBA and remitter information for simulation.
{
"vba_ifsc": "YESB0CMSNOC",
"utr": "utr",
"amount": 10,
"remitter_account": "808081pxqp242614HW",
"remitter_ifsc": "IFSC",
"remitter_name": "Test",
"phone": "1234567891"
}Response
Success response for simulating payment.