1. Product Based
Approve Product Based
PUT
{{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' field. PaymentAPI Address
Parameter | Type | Mandatory | Description |
---|---|---|---|
apikeypublic | string | Yes | The Public Key obtained from the merchant panel. |
apiclientpublic | string | Yes | The Public Client 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) being 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 details on your side, 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 value of 'true' for a successful transaction and 'false' otherwise. |
Message | string | If the transaction is unsuccessful, this message is specific to the error and provides language support based on the 'locale' parameter. |
Body | nesne | Transaction details |
Sample response for success
Sample response for failure
Last updated