Hesaptan API
    • API Response Codes and Messages
    • Credit Card Info & Test Cards
    • Deposit
      • Bank List
        GET
      • Create Deposit (Bank Transfer)
        POST
      • Create Deposit (Credit Card)
        POST
      • Check Deposit Status
        GET
    • Withdraw
      • Create Withdraw (Bank Transfer)
        POST
      • Check Withdrawal Status
        GET
    • Callback
      • Callback Request
        POST

    Credit Card Info & Test Cards

    Payment Types#

    Two different payment_type values are supported:
    three_d_secure
    redirect

    1. three_d_secure#

    When using the three_d_secure payment type, credit card information must be provided in the request.
    Required fields:
    card_holder
    card_number
    exp_month
    exp_year
    cvv
    The payment will be processed through a 3D Secure authentication flow after the card details are submitted.

    2. redirect#

    When using the redirect payment type, card details are not sent in the API request.
    Instead, the user is redirected to a payment page where the card information is collected securely on our side.

    Test Cards#

    You can use the following cards in the test environment.

    Approved#

    {
      "name": "John Doe",
      "number": "4012888888881881",
      "expiration": "10/27",
      "cvv": "279"
    }

    Rejected#

    {
      "name": "John Doe",
      "number": "4111111111111111",
      "expiration": "10/27",
      "cvv": "279"
    }
    Modified at 2026-09-17 09:13:46
    Previous
    API Response Codes and Messages
    Next
    Bank List
    Built with