post https://api.cashfree.com/api/v2/pg/orders/pay
Use this API to pay for the order you have created. Click on the payment link to complete the payment.
Click to view the detailed response parameters and response codes.
Response Parameters
Parameter | Description |
---|---|
status | Status of API call. Values are OK and ERROR. |
paymentLink | Link of payment page for that order. Returned when the status is OK. |
reason | Reason for failure when the status is an ERROR. |
Response Codes
Sub Code | Status | Message | Solution |
---|---|---|---|
200 | OK | Please provide a valid appId | Specify a valid appID |
400 | ERROR | Please provide a valid secretKey | Specify a valid secretKey |
400 | ERROR | Please provide a valid token | Specify a valid token |
400 | ERROR | Token is not present | Specify a token |
400 | ERROR | Invalid Card Number entered | Specify a valid card number |
400 | ERROR | Please provide a valid card expiry month | Specify a valid expiry month. Value should be at max 2 |
400 | ERROR | Please provide a valid card expiry year | Specify a valid expiry year. Value should be at max 2 |
400 | ERROR | Please provide a valid CVV | Specify a valid CVV. Value should be numeric and should be at max 4 |