9. Complete Payment

In APM providers, you can complete payments that were initiated with IsAutoCommit set to false by using this service

Complete Payment

POST {{Base Adres}}/api/paywall/apm/complete

Important To use the Disconnect service you must include the apikeypublic and apiclientpublic parameters in the Header PaymentAPI Address

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

Parameter
Type
Compolsory
Description

apikeypublic

string

Yes

Public Key obtained from the merchant panel

apiclientpublic

string

Yes

Public Client obtained from the merchant panel

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

Parameter
Type
Compulsory
Description

UniqueCode

string

Yes

It is included in the response object returned by our services at the time of payment initiation

{
    "UniqueCode": "5b67dcde-dcaa-472e-9df9-e03faa25936c"
}

The parameters returned from the service are as follows

Parameter
Type
Description

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

Body

object

If the operation fails this is the error detail object

{
  "ErrorCodeType": 1,
  "ErrorMessage": null,
  "ErrorCode": 0,
  "Result": true,
  "Message": "",
  "Body": {
    "ApmKey": "Masterpass_IFrame",
    "ApmConnectionId": 1234,
    "ApmTransactionId": 12345,
    "UniqueCode": "ee05a111-652e-43c5-bb2b-a98a5ea3adbc",
    "MerchantUniqueCode": "441b3aa2-95f2-4bdd-a243-4b7ced8887f",
    "Amount": 400.12,
    "ProviderDummyResponse": {
      "ErrorCode": 0,
      "Body": "",
      "HttpCode": 200
    }
  }
}

Last updated