2. Payment Based

Payment Based Payment Confirmation

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

Important: In order to use the payment service, you need to send the 'apikeypublic' and 'apiclientpublic' parameters in the 'Header' field.

PaymentAPI Address

ParameterTypeRequiredDescription

apikeypublic

string

Yes

The Public Key you have obtained from the merchant panel.

apiclientpublic

string

Yes

The Public Client obtained from the merchant panel.

The parameters that need to be sent to the service are as follows:

ParameterTypeRequiredDescription

PaymentId

int

Yes

The Id information on the PayWall side should be used for the payment.

Sample to be sent to the service JSON and sample codes is as follows.

{
    "PaymentId": 1644501
}

The response from the service:

ParameterTypeDescription

ErrorCode

int

Error code. It returns '0' if the operation is successful

Result

bool

The function returns a boolean value, either 'true' or 'false'. If the operation is successful, it returns 'true.'

Message

string

If the operation is unsuccessful, this is the error message, providing language support based on the 'locale' parameter.

Body

nesne

Operation details

Sample response for success

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

Sample response for failure

{
    "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