2. Payment-Based
Confirm Payment Based on Payment
POST
{{Base Adres}}/api/paywall/marketplace/reject/payment
apikeypublic
string
Yes
Public Key obtained from the merchant panel.
apiclientpublic
string
Yes
Public Client obtained from the merchant panel.
The parameters to be sent to the service are as follows:
PaymentId
int
Yes
Yes! If you want, I can help you list or format those parameters for the service. Just let me know what exactly you need!
The example JSON and sample codes to be sent to the service are as follows:
{
"PaymentId": 1644501
}
Response returned from the service:
ErrorCode
int
Error code. Returns '0' if the operation is successful.
Result
bool
Returns a true or false value. Returns 'true' if the operation is successful.
Message
string
If the operation fails, this is the message describing the error, and it supports localization based on the locale parameter.
Body
object
Detailed information about the transaction
Example response for a successful operation
{
"ErrorCode": 0,
"Result": true,
"Message": "",
"Body": {
"Success": [
{
"ProductId": 1626132
},
{
"ProductId": 1626133
},
{
"ProductId": 1626134
},
{
"ProductId": 1626135
},
{
"ProductId": 1626136
}
],
"Fail": []
}
}
Example response for a failed operation
{
"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