2. Ödeme Bazlı

Ödeme Bazlı Ödeme Onayla

POST {{PaymentBaseAddress}}/api/paywall/marketplace/reject/payment

Önemli: Ödeme servisini kullanabilmeniz için 'Header' alanında 'apikeypublic' ve 'apiclientpublic' parametrelerini göndermeniz gerekmektedir. PaymentAPI Adresi

ParametreTipZorunluAçıklama

apikeypublic

string

Evet

Üye işyeri panelinden temin etmiş olduğunuz Public Key.

apiclientpublic

string

Evet

Üye işyeri panelinden temin etmiş olduğunuz Public Client.

Servise gönderilmesi gereken parametreler şu şekildedir:

ParametreTipZorunluAçıklama

PaymentId

int

Evet

Ödemenin PayWall tarafındaki Id bilgisi kullanılmalıdır

Servise gönderilecek örnek JSON ve örnek kodlar aşağıdaki gibidir.

{
    "PaymentId": 1644501
}

Servisten dönen cevap:

ParametreTipAçıklama

ErrorCode

int

Hata kodu. İşlem başarılı ise '0' değerini döner.

Result

bool

True ya da false değeri döner. İşlem başarılı iste 'true' değerini döner.

Message

string

İşlem hatalıysa, bu hataya dair belirtilen mesajdır, locale parametresine göre dil desteği sunar.

Body

nesne

İşlem detay bilgileri

Başarılı için örnek cevap

{
    "ErrorCode": 0,
    "Result": true,
    "Message": "",
    "Body": {
        "Success": [
            {
                "ProductId": 1626132
            },
            {
                "ProductId": 1626133
            },
            {
                "ProductId": 1626134
            },
            {
                "ProductId": 1626135
            },
            {
                "ProductId": 1626136
            }
        ],
        "Fail": []
    }
}

Başarısız için örnek cevap

{
    "ErrorCode": 1,
    "Result": false,
    "Message": "",
    "Body": {
        "Success": [],
        "Fail": [
            {
                "ProductId": 1626132,
                "Reason": "This product marketplace earning calculated not found"
            },
            {
                "ProductId": 1626133,
                "Reason": "This product marketplace earning calculated not found"
            },
            {
                "ProductId": 1626134,
                "Reason": "This product marketplace earning calculated not found"
            },
            {
                "ProductId": 1626135,
                "Reason": "This product marketplace earning calculated not found"
            },
            {
                "ProductId": 1626136,
                "Reason": "This product marketplace earning calculated not found"
            }
        ]
    }
}

Last updated