Payment Request
Don't integrate with this API; use checkout-API instead Checkout API
POST <ottu-url>/pos/crt/
The variable URL is the installation domain. The URL must be secure, i.e.: https://
Required
amount string
Against currency type for the decimal places.
currency_codestring
Letters only. ISO 4217 codes https://en.wikipedia.org/wiki/ISO_4217. Validated against the gateway settings currencies list defined in admin. Max length: 3.
customer_email
initiator integer
ID of the user who initiates the transaction.
Optional
gateway_codestring
string
Gateway account code defined in admin panel.
languagestring
string
ISO 639-2 language code. https://www.loc.gov/standards/iso639-2/php/code_list.php. Max length: 2.
order_nostring
string
Merchant unique identifier. Max length: 128.
email_payment_details bool
bool
Send email to the customer with payment result details. Validated against customer_email.
sms_payment_details bool
bool
Send email to the customer with payment result details.
sms_notificationbool
bool
Send email to the customer with payment result details. Validated against customer_phone.
email_notificationbool
bool
Send payment link to customer to pay via email. Validated against customer_email.
customer_phone string
string
International phone number, with prefix. Max length: 16.
customer_first_name
customer_last_name
customer_address_line1 string
string
no specific limit.
customer_address_line2 string
string
no specific limit.
customer_address_city string
Add a default address from admin. Max length: 40.
customer_address_state string
string
Max length: 40.
customer_address_country string
string
Max length: 40.
customer_address_postal_code integer
integer
Max length: 12.
redirect_urlstring
string
URL where the user to be redirected after payment process has completed. Note that includes in query string order_no and reference_number. Can be set in admin panel also. Max length: 200.
disclosure_urlstring
string
URL where to send the payment result details. Must return a http status 200, in order to proceed with redirection to redirect_url. Can be set in admin panel also. Max length: 200.
initiator string
string
URL where to send the payment result details. Must return a http status 200, in order to proceed with redirection to redirect_url. Can be set in admin panel also. Max length: 200.
Merchant sends a request to the API endpoint
https://pay.{yourdomain}/pos/d/crt/
where Ottu is installed.
Ottu will respond back the Payment transaction details in POST request to this URL disclosure_url specified by the merchant while initiating the payment request, disclosure_url should return HTTP status 200 and Merchant should save the payload in DB, If disclosure_url doesn’t return HTTP status 200 then user will be redirected to Ottu response page and Transaction details will be displayed. Ottu GET to redirect_url with 2 parameters, order_no as TT01 and reference_number 45FGX, now on redirect_url merchant will fetch the data from DB and based on the result field customer will be redirected to success or failure page (created by Merchant).
Last updated