Project Description:
Create script to communicate between (VeroTel) Payment system and the
website (CamsMax) database, Script needs to automatically update
website (CamsMax) user database for the purchases made (The script location needs to be set in
the control center, My setup > Remote user management URLs). Once a customer is
forwarded to (Verotel) payment system and makes a purchase, (Verotel) payment system will send a
command to the script so it can update the database automatically.
In order to create the script, please view the variables needed:
/The VerotelRUM 1.1 has 6 calls, 3 of which are the basic actions of our remote user
management.
These calls and their required responses are listed below together with
string examples of the RUM call:
1. *add *call: don't add duplicate records to your member database,
DECLINED if duplicate is found.
Only return APPROVED after record was successfully added.
Otherwise return ERROR.
2. *modify *call: return DECLINED if given user account doesn't exist in your system.
Return APPROVED after successful update of your member database. Otherwise return
ERROR.
3. *delete *call: return DECLINED if given user account doesn't exist in your system.
Return APPROVED after given user account is successfully removed. Otherwise return
ERROR.
4. *rebill *and *cancel* calls: always return APPROVED.
Other than that, these transactions are not required to do anything, the calls are
provided
for your convenience, should you want to perform custom actions.
5. There is another call *list_ip*, which allows Verotel to remotely check your IP
file setup.
Please don't modify this functionality. If you write your own RUM script from scratch,
please recreate this function in its entirety.
In creating own script please ALWAYS send back a reply. Allowed values are
APPROVED, DECLINED and ERROR
Examples of the strings on the above actions are as follows:
add:
trn=add&usercode=test2&passcode=I3dup0Q&amount=10&trn_id=23455&custom1=foo&custom2=bar$custom3=foobar
delete:
=delete&usercode=test2&custom1=foo&custom2=bar
modify:
trn=modify&usercode=test&passcode=Pl8r5Qsg
cancel:
trn=cancel&usercode=test
rebill:
trn=rebill&usercode=test&amount=11&trn_id=2234567
The custom fields data is implemented in the Verotel HTML form code for the sign up
button, for example:
<!-- begin SIGN UP NOW BUTTON, start copying here -->
<form action=//"https://secure.verotel.com/cgi-bin/vtjp.pl"/
<https://secure.verotel.com/cgi-bin/vtjp.pl>/ method=post>
<input type=hidden name=verotel_id value="9804000000123456">
<input type=hidden name=verotel_website value="123456">
<input type=hidden name=verotel_custom1 value="data1">
<input type=hidden name=verotel_custom2 value="data2">
<input type=hidden name=verotel_custom3 value="data3">
<center>
<input type=submit value="SIGN UP NOW!">
</center>
</form>
<!-- end SIGN UP NOW BUTTON, end copying here -->