Download FreeNIBS/STArad
Transcript
Currency currency sign for payment, because suite is a multicurrency application. Doc_id is a unique transaction id from payment gateway processing software. Example of invocation: http://url/vpi/mux.php?
action=proceed_payment&sequince_id=YYY&service=rad&user_id=15&sum=10¤c
y=Euro&doc_id=123&cause=XXX&hash=ZZZ where hash is md5(concatenation of values of all parameters from left to right)
Return value xmlfile with an ok and amount or fail in a case of error.
<?xml version="1.0" encoding="UTF8" ?>
<response>
<response_code>ok</response_code>
<amount>12</amount>
</response>
or
<?xml version="1.0" encoding="UTF8" ?>
<response><response_code>fail</response_code></response>
9. get_user_id function. Parameters are sequence_id as F(session) as string, service as string ('rad' for example), uname as string (username), passwd as string (users password).
Example of invocation: http://url/vpi/mux.php?
action=get_user_id&seqence_id=XXX&service=rad&uname=test1&passwd=abra
Return value xmlfile with on ok, user_id and rechargable flag or fail in a case of error.
<?xml version="1.0" encoding="UTF8" ?>
<response>
<response_code>ok</response_code>
<user_id>15009</user_id>
<can_be_recharged>no</can_be_recharged>
</response>
or
<?xml version="1.0" encoding="UTF8" ?>
<response><response_code>fail</response_code></response>
10. get_tariff_list_enabled function. Parameters are sequence_id as F(session), service as string
Example of invocation: http://url/vpi/mux.php?
action=get_tariff_list_enabled&sequince_id=YYY&service=rad
Return value xmlfile with a list of tariffs, enabled for this gateway's username/password or fail in a case of error.
<?xml version="1.0" encoding="UTF8" ?>
<response>
<response_code>ok</response_code>
<tariffs>
<tariff>
<id>1</id>
<name>Best time</name>
<subject>Time</subject>
<cost>2</cost>