Skip to content

PaySmart 3D Ödeme

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

Üye işyeri web sitesi ödeme formunu gönderdikten sonra kullanıcı banka sayfasına yönlendirilecektir.

Ödeme, banka ağ geçidinde bir SMS koduyla doğrulanacaktır. Ödeme başarılı olduktan sonra, kullanıcı üye iş yerinin başarı URL'sine yönlendirilecektir, aksi takdirde üye işyeri tarafından belirlenen iptal URL 'ne yönlendirilecektir.

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

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

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

Method: POST

REQUEST BODY SCHEMA

json
[
    {
        "cc_holder_name": "John Doe",
        "cc_no": 4508034508034509,
        "cvv": "000",
        "expiry_month": 12,
        "expiry_year": 2026,
        "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=",
        "cancel_url": "string",
        "return_url": "string",
        "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
{
    "payment_status": "payment_staus can be 1/0. 1=success, 0=fail",
    "order_no": "Vepara order no",
    "invoice_id": "Merchant invoice id",
    "status_code": "Payment System Status code, 100 is success code",
    "status_desciption": "Transaction explanation from status code",
    "payment_method": "1= Credit Card, 2= Mobile, 3= Wallet",
    "transaction_type": "transaction_type == “Auth” //transaction amount is deducted from the card instantly. transaction_type == “Pre-Authorization” transaction amount will be deducted from the card later",
    "error_code": "The value of status_code parameter",
    "error": "The value of status_description parameter",
    "hash_key": "To Validate the request comes from Vepara"
}

Vepara