Documentation
  • Getting Started
  • PayKun Basic-Know-How
    • Registration Guide
    • Payment Life Cycle
    • Payments
    • PayKun Merchant Dashboard
    • PayKun Payment Links
  • PayKun Developer’s Hub
    • Getting Started
      • General Payment Flow with API
      • ‌Authentication
      • Types of Integration
    • Test Environment
    • API Encryption Key Guide
    • Web Integration
      • Understanding Integration
        • Request
        • Encryption
        • Response
        • Error Codes
      • PHP
      • Python
      • .Net
      • JS Checkout
    • Mobile Integration
      • Android SDK
      • iOS SDK
    • eCommerce Integration
      • OpenCart
      • PrestaShop Modules
      • Paykun WHMCS Kit
      • Wordpress_v4.x_Donation
      • WooCommerce
      • Magento
    • Webhooks
    • API Reference Guide
    • Signature Generation and Verification
    • Test Card Information
Powered by GitBook
On this page
  • Sandbox
  • Production

Was this helpful?

  1. PayKun Developer’s Hub
  2. Web Integration
  3. Understanding Integration

Error Codes

PreviousResponseNextPHP

Last updated 4 years ago

Was this helpful?

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

  • PRIMARY_VALIDATION_FAIL Reason: Primary data validation is failed, might be due to the following reason:

    1. Duplicate Order ID

    2. Invalid Amount

    3. Invalid Order ID

    4. 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:

    1. Invalid Merchant ID/Token

    2. Merchant is inactive for live transaction

    3. Duplicate/Invalid Order ID

    4. Invalid Amount

    5. Empty Transaction Limit

    Solutions :

    1. Get the account activated with the onboarding team

    2. Enter respective Correct values

  • Unauthorized Request

    Reasons:

    1. This error will be shown only if there is an error with Access Token or API Secret

    2. When request is initiated from unauthorized website.

    Solutions :

    1. 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.

Get the as available in your PayKun Dashboard.

Follow the steps and instructions as in

Solutions : Generally it is a temporary error. But if you are facing this error continuously, please report it to

Generate Access Token & API Secret KEY
Merchant ID
Generate Access Token & API Secret KEY
support@paykun.com