4. Completing 3D Payment

3D Payment Completion

POST {{Base Adres}}/api/paywall/payment/end3d

Sending a request to the provided address above should be sufficient. You can use the 'Base Address' for both the test environment and the production environment as needed.

Important: To use the payment service, you need to send the 'apikeypublic' and 'apiclientpublic' parameters in the 'Header' field.

PaymentAPI Address

ParameterTypeMandatoryDescription

apikeypublic

string

Yes

The Public Key you have obtained from the merchant panel.

apiclientpublic

string

Yes

The Public Client you have obtained from the merchant panel.

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

ParameterTypeMandatoryDescription

MerchantUniqueCode

string

Yes

The MerchantUniqueCode sent in the request for initiating the payment must have the same value. This code is a unique identifier provided by you for the transaction. It is used to uniquely identify and track a payment for all cancellation, refund, and payment query operations.

{
    "MerchantUniqueCode": "aaa"
}

The response returned from the service:

ParameterTypeDescription

ErrorCode

int

It reports the result of the operation. If the operation is successful, it returns '0'; otherwise, it returns '1'.

Result

string

If the operation is successful, it returns 'true'; otherwise, it returns 'false'.

Message

string

It reports the message indicating the result of the operation.

Sample Code :

{
    "ErrorCode": 0,
    "Result": true,
    "Message": "",
    "Body": ""
}

In the response message for completing the 3D payment, when the value of the "Result" parameter is "true" and the value of the "ErrorCode" parameter is "0," it indicates that the 3D payment process has been accepted.

Last updated