Vous êtes sur la page 1sur 3

Payment Methods

IVR – Initial Payment

URL: http://one.yourcabs.org/ivr_payment.php?id=0023

Output: (XML Format)

<MMP>
<BOOKING>
<RESPONSE>
<param name="id">0023</param>
<param name="amount">7258.00</param>
<param name="mobileno">9880901226</param>
</RESPONSE>
</BOOKING>
</MMP>

[Note: In the above url id stands for payment id because the first two digit of id is “00”,
Atom guys need to change the ID and call this url for initial payment ]

+++++++++++++

IVR – Final Payment

URL: http://one.yourcabs.org/ivr_payment.php?id=0123

Output : (XML Format)

<MMP>
<BOOKING>
<RESPONSE>
<param name="id">0123</param>
<param name="amount">162.54</param>
<param name="mobileno">9845865266</param>
</RESPONSE>
</BOOKING>
</MMP>

[ Note : In the above url id stands for booking id because the first two digit of id is “01”,
Atom guys need to change the ID and call this url for Final payment ]

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Mobile Application Step1 :

Url : http://one.yourcabs.org/mobile_appliction.php?mob_no=9845865266

Output (XML Format)


<MMP>
<CUSTOMER>
<RESPONSE>
<url>http://one.yourcabs.org/mobile_appliction2.php</url>
<param name="from">Bangalore</param>
<param name="to">Ootacamund</param>
<param name="date">21/10/2010</param>
</RESPONSE>
<RESPONSE>
<url>http://one.yourcabs.org/mobile_appliction2.php</url>
<param name="from">Bangalore</param>
<param name="to">Mysore</param>
<param name="date">20/10/2010</param>
</RESPONSE>
</CUSTOMER>
</MMP>

Note : When Atom guys call this url with different mobile number , system retrieve the
corresponding booking information from the database, and these information will display in the
customer’s mobile like :

O Bangalore to Ootacamund 21/10/2010


O Bangalore to Mysore 20/10/2010

Depends on customers selection the second url need to generate like this,

(if first options is selected then the url is : http://one.yourcabs.org/mobile_appliction2.php?


mob_no=9845865266&from=Bangalore&to=Ootacamund&date=21/10/2010 )

(if second options is selected then the url is : http://one.yourcabs.org/mobile_appliction2.php?


mob_no=9845865266&from=Bangalore&to=Mysore&date=20/10/2010 )

+++++++++++++++++++++++++++++++++

Mobile Application Step2 :

When Atom calls the second url (think customer selected the first option) :
http://one.yourcabs.org/mobile_appliction2.php?
mob_no=9845865266&from=Bangalore&to=Ootacamund&date=21/10/2010

The Output will be (XML Format)

<MMP>
<CUSTOMER>
<RESPONSE>
<param name="bookid">23</param>
<param name="amount">15565.54</param>
<param name="paid">15403.00</param>
<param name="balance">162.54</param>
</RESPONSE>
</CUSTOMER>
</MMP>
[ Note : From the output of second url Atom server need to understand the balance payment
162.54 need to collect from the customer. ]

+++++++++++++++++++++++++++++++++++++++++++

Important Note :

Once the Payment is done from the customer Atom server need to send the proper report to
yourcabs server.

Please let us know what are the parameters (filed names) you are passing once the payment is
done.

Vous aimerez peut-être aussi