1. Credit Card
E-Pay
  • Default module
    • Inital
      • Payment Types
    • Credit Card
      • Pay with card number
        POST
      • Pay with card token
        POST
      • Payment Status
        POST
      • Payment Refund
        POST
      • Payment Complete
        POST
      • Payment Void
        POST
    • Card Storage
      • Saved Card List
      • Saved Card Get
      • Saved Card Create
      • Saved Card Delete
    • Queries
      • Credit Card Bin Query / Installment
      • Credit Card Bin Query / Installments
    • ParolaparaPay
      • Create Payment (Send OTP Message)
      • Otp Verify
      • Capture
      • Cancel
      • Refund
      • Status
    • Schemas
      • Requests
        • Order Request
        • Order Item Request
        • Address
        • Customer
        • Payment Request
      • Responses
        • Installment
        • Stored Card
        • Payment Status
        • Paymentstate
      • Enums
        • Card types
  • UcuzYolu
    • Parolapay
      • Cancel
      • Capture
      • Health Check
      • Initiate
      • OTP verify
      • Payment Status
      • Refund
      • ResendOTp
      • Status
  • UcuzYolu
    • Parolapay
      • Cancel
      • Capture
      • Health Check
      • Initiate
      • OTP verify
      • Payment Status
      • Refund
      • ResendOTp
      • Status
  1. Credit Card

Pay with card token

Developing
POST
/card/pay
Test 3d: 34020

Request

Authorization
Send your HTTP requests with an
Authorization
header that contains the word Basic followed by a space and a base64-encoded string username:password
Example:
Authorization: Basic *****************
Body Params application/json

Example
{
    "card_holder":"John Due",
    "card_number": "5406675406675403",
    "card_expiry": "12/26",
    "card_cvv": "000",
    "order_reference":"DZCDF8MI",
    "force_3d": true,
    "callback_url": "http://localhost/",
    "order": {
        "price": 100,
        "tax": 20,
        "delivery_price": 0,
        "insurance_price": 0,
        "discount": 0,
        "total": 120,
        "items": [
            {
                "product_name": "24 kt gold",
                "price": 100,
                "tax_rate": 20,
                "tax": 20,
                "amount": 1,
                "total": 120
            }
        ]
    },
    "customer":{
        "external_id": "MNT1009832",
        "fullname": "John Due",
        "email": "johndue@example.com",
        "phone": "+905322808035",
        "birthdate": "1989-04-20",
        "tax_office": "Test",
        "tax_number": "03848333"
    },
    "address":{
        "invoice_name": "John Due",
        "invoice_address_line1": "test mah. test cad.",
        "invoice_address_line2": "test sitesi",
        "invoice_address_zipcode": "34320",
        "invoice_address_town": "Beykoz",
        "invoice_address_city": "İstanbul",
        "invoice_address_country": "Türkiye",
        "delivery_name": "John Due",
        "delivery_address_line1": "test mah. test cad.",
        "delivery_address_line2": "test sitesi",
        "delivery_address_zipcode": "34320",
        "delivery_address_town": "Beykoz",
        "delivery_address_city": "İstanbul",
        "delivery_address_country": "Türkiye"
        
    }
}

Request Code Samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location 'http://pay.tripingram.local/card/pay' \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data-raw '{
    "card_holder":"John Due",
    "card_number": "5406675406675403",
    "card_expiry": "12/26",
    "card_cvv": "000",
    "order_reference":"DZCDF8MI",
    "force_3d": true,
    "callback_url": "http://localhost/",
    "order": {
        "price": 100,
        "tax": 20,
        "delivery_price": 0,
        "insurance_price": 0,
        "discount": 0,
        "total": 120,
        "items": [
            {
                "product_name": "24 kt gold",
                "price": 100,
                "tax_rate": 20,
                "tax": 20,
                "amount": 1,
                "total": 120
            }
        ]
    },
    "customer":{
        "external_id": "MNT1009832",
        "fullname": "John Due",
        "email": "johndue@example.com",
        "phone": "+905322808035",
        "birthdate": "1989-04-20",
        "tax_office": "Test",
        "tax_number": "03848333"
    },
    "address":{
        "invoice_name": "John Due",
        "invoice_address_line1": "test mah. test cad.",
        "invoice_address_line2": "test sitesi",
        "invoice_address_zipcode": "34320",
        "invoice_address_town": "Beykoz",
        "invoice_address_city": "İstanbul",
        "invoice_address_country": "Türkiye",
        "delivery_name": "John Due",
        "delivery_address_line1": "test mah. test cad.",
        "delivery_address_line2": "test sitesi",
        "delivery_address_zipcode": "34320",
        "delivery_address_town": "Beykoz",
        "delivery_address_city": "İstanbul",
        "delivery_address_country": "Türkiye"
        
    }
}'

Responses

🟢200OK
application/json
Bodyapplication/json

Example
{
    "data": {
        "is_3d": true,
        "redirect_url": "https://pay.test.mintedconnect.com/card/ojEcWcWNHJbhtjtdotugkHBRs6CmikuZBubSyUrJpoEpjnRSb0HWr5Sf5kocVdKAh5JMaBOMUEufVTAhHUZzglpcqUYcGPFYOrW1X5pR72fgUdzxxeWjMc3MjjTkypqs/redirect",
        "token": "ojEcWcWNHJbhtjtdotugkHBRs6CmikuZBubSyUrJpoEpjnRSb0HWr5Sf5kocVdKAh5JMaBOMUEufVTAhHUZzglpcqUYcGPFYOrW1X5pR72fgUdzxxeWjMc3MjjTkypqs",
        "payment_reference": "DZCDF8MIKM90",
        "amount": 100,
        "comission": 10,
        "total": 110,
        "gateway": "EF\\Epay\\Lidiopos",
        "auth_mode": "preauth"
    },
    "success": true,
    "code": 101,
    "message": ""
}
🟠422Parameter Error
Modified at 2024-01-30 03:12:17
Previous
Pay with card number
Next
Payment Status
Built with