Payment Gateway
Post https://api.businessonlinesolution.in/api/AOP/BOSPaymentGateway
Before performing the AOP Payment Gateway API integration with the various products, you need to pass the Request Parameter given below lilke Customer Name, Phone No, Email ID, Pay Cart Amount, Cancelled URL (curl), Failed URL ( furl), Submit URL (surl) and Registration ID (Customer Id given by the AOPay) and you will get the Order Id in response to that. This Order ID is a unique identifier that authenticates payment requests you make with AOP Center.
Body Parameters
{ "PayCustomerName": "Enter Customer Name", "PayCustomerPhoneNo": "Enter Customer Phone No", "CustomerEmailID": "Enter Customer Email ID", "PayCartAmount": "Enter Cart Amount", "curl": "Enter Cancel URL", "furl": "Enter Fail URL", "surl": "Enter Success URL", "RegistrationID": "Enter Registration ID" }
Responses

200
200

Response
200

RESPONSE BODY
Json

403
403

Response
403

RESPONSE BODY
Object
responsecode integer
status boolean
message string
Did this page help you? Yes No
Language





cURL
curl --location 'https://api.businessonlinesolution.in/api/AOP/BOSPaymentGateway' \ --header 'Content-Type: application/json' \ --data-raw '{ "PayCustomerName": "abc", "PayCustomerPhoneNo": "9999XXXX", "CustomerEmailID": "khan.xxxxxxx@gmail.com", "PayCartAmount": "100", "curl": "www.abc.com", "furl": "www.abc.com", "surl": "www.abc.com", "RegistrationID": "AOP-2XXX" }'
import requests import json url = 'https://api.businessonlinesolution.in/api/AOP/BOSPaymentGateway' payload = json.dumps({ "PayCustomerName": "abc", "PayCustomerPhoneNo": "9999XXXX", "CustomerEmailID": "khan.xxxxxxx@gmail.com", "PayCartAmount": "100", "curl": "www.abc.com", "furl": "www.abc.com", "surl": "www.abc.com", "RegistrationID": "AOP-2XXX" }) headers = { "Content-type" : "application/json" } response = requests.request("POST", url, headers=headers, data=payload) print (response.text)
var requests = require("request"); var options = { "method" : "POST", "url" : 'https://api.businessonlinesolution.in/api/AOP/BOSPaymentGateway', "headers" : { "Content-Type" : 'application/json' }, body: JSON.stringify({ "PayCustomerName": "abc", "PayCustomerPhoneNo": "9999XXXX", "CustomerEmailID": "khan.xxxxxxx@gmail.com", "PayCartAmount": "100", "curl": "www.abc.com", "furl": "www.abc.com", "surl": "www.abc.com", "RegistrationID": "AOP-2XXX" }) }; request(options, function(error, response){ if(error) throw new Error(error); console.log(response.body); });
var client = new HttpClient(); var request = new HttpRequestMessage(HttpMethod.Post,'https://api.businessonlinesolution.in/api/AOP/BOSPaymentGateway') var content = new StringContent( "{ "PayCustomerName": "abc", "PayCustomerPhoneNo": "9999XXXX", "CustomerEmailID": "khan.xxxxxxx@gmail.com", "PayCartAmount": "100", "curl": "www.abc.com", "furl": "www.abc.com", "surl": "www.abc.com", "RegistrationID": "AOP-2XXX" }", null,"application/json" ); request.Content = content; var response = await client.SendAsync(request); response.EnsureSuccessStatusCode(); Console.WriteLine(await response.Content.ReadAsStringAsync());
<?php $curl = curl_init(); curl_setopt_array($curl, array( CURLOPT_URL => 'https://api.businessonlinesolution.in/api/AOP/BOSPaymentGateway', CURLOPT_RETURNTRANSFER => true, CURLOPT_ENCODING => '', CURLOPT_MAXREDIRS => 10, CURLOPT_TIMEOUT => 0, CURLOPT_FOLLOWLOCATION => true, CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, CURLOPT_CUSTOMREQUEST => 'POST', CURLOPT_POSTFIELDS => '{ "PayCustomerName": "abc", "PayCustomerPhoneNo": "9999XXXX", "CustomerEmailID": "khan.xxxxxxx@gmail.com", "PayCartAmount": "100", "curl": "www.abc.com", "furl": "www.abc.com", "surl": "www.abc.com", "RegistrationID": "AOP-2XXX" }', CURLOPT_HTTPHEADER => array( 'Content-Type: application/json' ), )); $response = curl_exec($curl); curl_close($curl); echo $response;
RESPONSE


200
403
-Result
Example

-
200
-Result
Example
-
403
-Result
Example
{ "Status": "true", "code": "200", "Message": "Success", "PGOrderID": "CMP1045_WA_BOSXXXXXXXXXXXX", "PreparePOSTForm": "< id='PostForm' name='PostForm' action='https://secure.payu.in/_payment' method='POST'> }
{ "Status": "403", "code": null, "Message": "Pay Customer Name is Required", "PGOrderID": null, "PreparePOSTForm": null }