1. Complete Payment (PaymentId)

After receiving the response for **3D** and **Non-Secure** payments made via Masterpass, this service must be called to complete the payment. The relevant service operates using the

Complete Payment

POST {{Base Address}}/api/paywall/masterpass/payment/commit/by/paymentid

It is sufficient to send a request to the address provided above. You can use the Base Address as needed for both the Test environment and the Production environment.

Important: In order to use the Masterpass - Complete Payment (PaymentId) service, you must include the 'apikeyprivate' and 'apiclientprivate' parameters in the Header. PaymentAPI Address

Parameter
Type
Compolsory
Description

apikeyprivate

string

Yes

Private Key obtained from the merchant panel.

apiclientprivate

string

Yes

Private Client obtained from the merchant panel.

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

Parameter
Type
Compolsory
Description

SessionId

Guid

Yes

Session ID information

PaymentId

bigint

Yes

It is included in the response returned by Paywall services at the time of payment initiation.

{
    "SessionId": "512b673e-f36b-1410-80e8-004205aa382d",
    "PaymentId": 8013143466
}

Response returned from the service:

Parameter
Type
Description

Body

object

JSON containing payment-related details (optional)

ErrorCode

int

Error code. Returns '0' if the operation is successful

Result

bool

Returns true or false. If the operation is successful, it returns 'true'

Message

string

If the operation fails, this is the message describing the error, with language support based on the locale parameter

Last updated