Error Codes
Sandbox
INVALID_REFERREL Reason: When request is initiated from unauthorized/invalid website
Solution: Try initiating request from authorized website only (the website domain should be registered and approved with the registered merchant account of PayKun)
INVALID_MERCHANT Reason: Merchant ID is not found, or Merchant is not active to perform the transaction.
Solution: Get the Merchant ID as available in your PayKun Dashboard. For Live mode the account needs to be activated from the onboarding team.
INVALID_TOKEN Reason: Provided access token is invalid.
Solution: Follow the steps and instructions as in Generate Access Token & API Secret KEY
PRIMARY_VALIDATION_FAIL Reason: Primary data validation is failed, might be due to the following reason:
Duplicate Order ID
Invalid Amount
Invalid Order ID
Empty Transaction Limit
Solution: Enter the correct respective values
Production
In Production mode/phase, no error code will be displayed.
For any other cases, one of the following general messages will be displayed:
Invalid Request
Reasons :
This error will be shown in the following conditions:
Invalid Merchant ID/Token
Merchant is inactive for live transaction
Duplicate/Invalid Order ID
Invalid Amount
Empty Transaction Limit
Solutions :
Get the Merchant ID as available in your PayKun Dashboard.
Get the account activated with the onboarding team
Enter respective Correct values
Unauthorized Request
Reasons:
This error will be shown only if there is an error with Access Token or API Secret
When request is initiated from unauthorized website.
Solutions :
Follow the steps and instructions as in Generate Access Token & API Secret KEY
Try initiating request from authorized website only, means the website domain which is registered and approved with the registered merchant account of PayKun
Internal Server Error: Reasons: This error will be displayed when something went wrong in server.
Solutions : Generally it is a temporary error. But if you are facing this error continuously, please report it to support@paykun.com
Last updated