1. ParolaparaPay
E-Pay
  • Default module
    • Inital
      • Payment Types
    • Credit Card
      • Pay with card number
      • Pay with card token
      • Payment Status
      • Payment Refund
      • Payment Complete
      • Payment Void
    • 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)
        POST
      • Otp Verify
        POST
      • Capture
        POST
      • Cancel
        POST
      • Refund
        POST
      • Status
        POST
    • 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. ParolaparaPay

Create Payment (Send OTP Message)

Developing
POST
/parolapay/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/parolapay/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

🟢200
application/json
Bodyapplication/json

Example
{
    "data": {
        "success": true,
        "message": "",
        "code": "0",
        "transaction_id": "135816868",
        "order_reference": "d7e15b6d-4f83-4e61-9d5b-c9ae1766b3cd",
        "status": "200",
        "auth_mode": "preauth",
        "captured": false,
        "charge_type": "otp",
        "raw_response": {
            "intent_id": "135816868",
            "status": 200,
            "merchant_ref": "d7e15b6d-4f83-4e61-9d5b-c9ae1766b3cd",
            "otp_sent": true,
            "otp_token": null,
            "created_at": "2025-10-11T02:03:25.817040",
            "updated_at": "2025-10-11T02:03:25.817040",
            "success": true
        },
        "otpSent": true,
        "otpToken": null
    },
    "success": true,
    "code": 0,
    "message": ""
}
🟠422Parameter Error
Modified at 2025-10-11 00:31:03
Previous
Credit Card Bin Query / Installments
Next
Otp Verify
Built with