Skip to content

Non-Secure Ödeme

Açıklama: Pay By MarketPlace API'si, sipariş ve kredi kartı ayrıntı bilgilerini Vepara ödeme entegrasyon sistemine göndermek için kullanılır.

URL: /api/marketplace/sale/pay/smart/non-secure

Test Sunucusu: https://test.vepara.com.tr/ccpayment/api/marketplace/sale/pay/smart/non-secure

Canlı Sunucusu: https://app.vepara.com.tr/ccpayment/api/marketplace/sale/pay/smart/non-secure

Method: POST

REQUEST BODY SCHEMA

json

[
    {
        "cc_holder_name": "John Doe",
        "cc_no": 4508034508034509,
        "cvv": "000",
        "expiry_month": 12,
        "expiry_year": 2026,
        "currency_id": 949,
        "currency_code": "TRY",
        "installments_number": 1,
        "invoice_id": "1564887Test",
        "invoice_description": "INVOICE TEST DESCRIPTION",
        "name": "John",
        "surname": "Dao",
        "total": 210,
        "merchant_key": "$2y$10$w/ODdbTmfubcbUCUq/ia3OoJFMUmkM1UVNBiIQIuLfUlPmaLUT1he",
        "items": [
        {
            "item_id": 1,
            "sub_merchant_id": "98950-90-7111155889",
            "name": "Item1",
            "price": 10,
            "sub_merchant_share": 8,
            "quantity": 1,
            "description": "Item1 Description"
        },
        {
            "item_id": 2,
            "sub_merchant_id": "98950-89-7111157028",
            "name": "Item2",
            "price": 20,
            "sub_merchant_share": 16,
            "quantity": 1,
            "description": "Item2 Description"
        },
        {
            "item_id": 3,
            "sub_merchant_id": "98950-88-7111133015",
            "name": "Item3",
            "price": 30,
            "sub_merchant_share": 24,
            "quantity": 3,
            "description": "Item3 Description"
        },
        {
            "item_id": 4,
            "sub_merchant_id": "98950-90-7111155889",
            "name": "Item4",
            "price": 30,
            "sub_merchant_share": 24,
            "quantity": 3,
            "description": "Item4 Description"
        }],
        
            "hash_key": "36a50210c8b2f19e:12514:ZOkRUTaBZRzxotsa3GoEP8YdACrveObLwFbf91t1LQyoct4t9mUvh82oU5Jf/ni0mXFuFHTBfxAiMHLnRyv1/o3qT5mQ8690UUbAk3AKiCU=",
            "bill_address1": "string",
            "bill_address2": "string",
            "bill_city": "string",
            "bill_postcode": "string",
            "bill_state": "string",
            "bill_country": "string",
            "bill_email": "string",
            "bill_phone": "string",
            "sale_webhook_key": "string",
            "card_program": "string",
            "ip": "string"
    }
]

RESPONSE BODY

200 Başarılı Sonuç
json
{
    "status_code": 100,
    "status_description": "An order has been taken place for this invoice id: 33491162435928",
    "transaction_status": "Completed",
    "order_id": 162435932934307,
    "transaction_id": "SXY0m-o3kb-TC10-98950-220621",
    "message": "An order has been taken place for this invoice id: 33491162435928",
    "reason": "",
    "bank_status_code": "",
    "bank_status_description": "",
    "invoice_id": "33491162435928",
    "total_refunded_amount": 0,
    "product_price": 20,
    "transaction_amount": 22.1,
    "ref_number": "",
    "transaction_type": "Auth",
    "merchant_commission": "2.63",
    "user_commission": "0.00",
    "settlement_date": "2022-05-10",
    "md_status": 1,
    "recurring_id": "303 // Yalnızca yinelenen işlemlerde döner",
    "recurring_plan_code": "1601492241FdsraX  // Yalnızca yinelenen işlemlerde döner",
    "next_action_date": "2021-05-30 03:10:00 // Yalnızca yinelenen işlemlerde döner ",
    "recurring_status": "Active // Yalnızca yinelenen işlemlerde döner"
}
400 Başarısız Sonuç
json
{
    "status_code": 14,
    "status_description": "Invalid merchant key or merchant is not active."
}