1. Product Based
Confirm Product Based Payment
POST
{{PaymentBaseAddress}}/api/paywall/marketplace/approve/product
Important: In order to use the payment service, you need to send the 'apikeypublic' and 'apiclientpublic' parameters in the 'Header' section. PaymentAPI Address
Parameter | Type | Mandatory | Description |
---|---|---|---|
apikeypublic | string | Yes | The Public Key you obtained from the merchant panel. |
apiclientpublic | string | Yes | The Public Client you obtained from the merchant panel. |
The parameters that need to be sent to the service are as follows:
Parameter | Type | Mandatory | Description |
---|---|---|---|
ProductIds | List<int> | yes | During the payment process, the Id information related to the product(s) sent should be used in the PayWall system. The relevant Id is returned within the response of the product. If you are unable to store these Id information on your end, you can use the 'Payment-Based' confirmation method. |
Sample to be sent to the service JSON and sample codes is as follows
The response returned from the service:
Parameter | Type | Description |
---|---|---|
ErrorCode | int | Error code. If the transaction is successful, it returns a value of '0'. |
Result | bool | It returns a true or false value. If the transaction is successful, it returns 'true'. |
Message | string | If the transaction is unsuccessful, this is the message related to the error, providing language support based on the 'locale' parameter. |
Body | nesne | Transaction details |
Sample response for success
Sample response for failure
Last updated