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.
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:
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
}// Soon// Soon// Soon// Soon// Soon// Soon// Soon// SoonResponse returned from the service:
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
Payment Not Found
AutoCommit payments cannot be completed again.
Last updated