3. Payments/Products

You can use this service to retrieve a list of the transaction steps for the payments you have made.

POST {{Base Address}}/api/payment/products

It will be sufficient to send a request to the address provided above. You can use the 'Base Address' as desired for both the test environment and the production environment.

Important: In order to use the Payment Products service, you need to send the 'apikeyprivate' and 'apiclientprivate' parameters in the 'Header' field. PhysicalAPI Address

The header information that needs to be sent to the service is as follows:

Parameter
Type
Compulsory
Description

apikeyprivate

string

Yes

The Private Key obtained from the merchant panel.

apiclientprivate

string

Yes

The Private Client obtained from the merchant panel.

The body information that needs to be sent to the service is as follows:

{
  "pageIndex": 0,
  "pageSize": 10,
  "PaymentRequestId": "8850e51c-b09a-43fd-855f-83c4037cce45"
}

Response returned from the service:

Parameter
Type
Description

Result

object

Returns the information in the details of the service.

ErrorCode

int

Error code. Returns the value '0' if the transaction is successful.

Succeeded

bool

Returns a true or false value. Returns 'true' if the transaction is successful.

Failed

bool

Returns a true or false value. Returns 'true' if the transaction is unsuccessful.

Message

string

If the transaction is erroneous, this is the message related to the error. It provides language support based on the locale parameter.

ClientMessage

string

Returns the fixed values of the Paywall error codes. You can perform mapping.

{
    "Result": {
        "Items": [
            {
                "Id": "e9542707-459a-438f-8354-7388e5bdea5b",
                "Name": "Saç Tıraşı",
                "Amount": 1.44,
                "Quantity": 1,
                "TaxGroupId": 10,
                "TaxGroupName": "Ten",
                "UnitCodeId": 1,
                "UnitCodeName": "Kilogram"
            }
        ],
        "Pagination": {
            "CurrentPage": 0,
            "PageCount": 1,
            "PageSize": 10,
            "TotalCount": 1
        }
    },
    "Failed": false,
    "Message": null,
    "ClientMessage": null,
    "Succeeded": true
}

Last updated