merCode is the payment code for merchants, it is generated with 16 digits random rode. Once a merchant starts OTTPAY payment service, OTTPAY operation team will send this code through welcome email.
merchantId is a merchant ID created by OTTPAY. Once a merchant starts OTTPAY payment service, OTTPAY operation team will send this ID through welcome email.
orderId is a customized order ID provided by merchant. Once an order is placed, merchant need to send this order ID.
Amount is the order amount. Once the customer places the order, the merchant need to send the amount.
Note: All the monetary measurement unit in API are CENT, which means 1 dollar = 100
operId is an operator number with 10-digit created by OTTPAY. Once a merchant starts OTTPAY payment service, OTTPAY operation team will send this ID through welcome email.
returnURL is the link to the order processing page to be displayed by the merchant after the payment request is returned, which is defined by the merchant according to its own business needs. That is, after payment is completed, Alipay redirects back to this page of the merchant's website. It is required to have it Base64 encoded in the request.
returnURL=aHR0cHM6Ly93d3cub3R0cGF5LmNvbS9yZXN1bHQ=
(Base64 encoded value of https://www.ottpay.com/result)
notifyURL is the callback URL of the merchant, that is, the link with the payment result from OTTPAY. It is required to have it Base64 encoded in the request.
notifyURL=aHR0cHM6Ly93d3cub3R0cGF5LmNvbS9jYWxsYmFjaw==
(Base64 encoded value of https://www.ottpay.com/callback)
submit_type is the flag for response format. If submit_type=”scan”, OTT Pay will return a dynamic link, else if submit_type=”form”, OTT Pay will return HTML form.
The next action: embed and show the form on your page and start to pay
Once API server finished the request process, it will send back process status to specified URL which been set up as field of 'notifyURL' within above API request parameters.