This topic describes the automated transaction subroutines.
Starts the Transaction form.
Call w3HTMLeComBeg(“MT”,”TEST0”,”MyTemplate”,”FormName”,”ExtraInfo”) |
CHID |
Item-ID of the Clearing House. |
ATSID |
Item-ID of the Merchant. |
MT.Template |
Name of the default template to use. |
FormName |
Name of the Transaction form. Leave blank if not used. |
ExtraInfo |
Extra HTML or JavaScript to be inserted in the <FORM …> tag. |
<!--MT.FormBeg--> <form method=post action="#MT.URL#" Name="#FormName#" #Extra#> <!--/MT.FormBeg--> <!--MT.Required--> <input type=hidden name=atsid value="#ATSID#"> <input type=hidden name=usepost value="#USEPOST#"> <!--/MT.Required--> |
<!--************** eCommerce FORM BEGIN ***************--> <form method=post action="https://MyBankURL" Name=”FormName" ExtraInfo> <input type=hidden name=atsid value="TEST0"> <input type=hidden name=usepost value="1"> |
The UsePost value comes from the ATS file. A value of 1 tells the bank’s server to return detailed result information from the authorization. The Accept or Decline applications on the database server can then process the returned information.
Ends the Transaction form.
Call w3HTMLeComEnd |
</form> <!-- ************ eCommerce FORM END ************* --> |
Inserts the credit card section in the Transaction form.
Call w3HTMLeComCCInfo(“MT”,”TEST0”,”MyTemplate”,Email,CCInfo,1200,FormName) |
CHID |
Item-ID of the Clearing House. |
ATSID |
Item-ID of the Merchant. |
MT.Template |
Name of the default template to use. |
|
Table of Item-IDs of the EmailSubject and EmailText from either the ATS or the CCInfo file. (See CC.ATS and CC.CCInfo for more detail). |
CCInfo |
Table containing the credit card information. (See CC.CCInfo for more detail). |
Amount |
Dollar amount to be debited from the credit card. |
FormName |
The form name is required only when the CCCheck flag is set to 1. In this case, the form name is used in the JavaScript of the CC.Validation template to validate the Transaction Form before it is submitted to the Internet bank. |
<!--MT.CC-Required--> <input type=hidden name=action value="#ACTION#"> <input type=hidden name=amount value="#AMOUNT#"> <input type=hidden name=ccname value="#NAME#"> <input type=hidden name=ccnum value="#CCNUM#"> <input type=hidden name=expmon value="#EXPMONTH#"> <input type=hidden name=expyear value="#EXPYEAR#"> <input type=hidden name=acceptur value="#AcceptURL#"> <input type=hidden name=declineurl value="#DeclineURL#"> <input type=hidden name=AuthOnly value="#AuthOnly#"> <input type=hidden name=PostOnly value="#PostOnly#"> <!--/MT.CC-Required--> |
<input type=hidden name=action value="ns_quicksale_cc"> <input type=hidden name=amount value=" 1200.00"> <input type=hidden name=ccname value="Joe Customer"> <input type=hidden name=ccnum value="5454545454545454"> <input type=hidden name=expmon value="01"> <input type=hidden name=expyear value="2001"> <input type=hidden name=accepturl value="http://AcceptURL"> <input type=hidden name=declineurl value="http://DeclineURL"> <input type=hidden name=AuthOnly value=""> <input type=hidden name=PostOnly value=""> |
The credit card information comes from the CCInfo table. (See CC.CCInfo for more detail).
Inserts the electronic check section in the Transaction Form.
Call w3HTMLeComCKInfo(“MT”,”TEST0”,”MyTemplate”,Email,CKInfo,1200) |
CHID |
Item-ID of the Clearing House. |
ATSID |
Item-ID of the Merchant. |
MT.Template |
Name of the default template to use. |
|
Table of Item-IDs of the EmailSubject and EmailText from either the ATS or the CCInfo file. (See CC.ATS and CC.CCInfo for more detail). |
CKInfo |
Table containing the electronic check information. (See CC.CKInfo for more detail) |
Amount |
Dollar amount to be debited from the credit card. |
<!--MT.CK-Required--> <input type=hidden name=action value="#ACTION#"> <input type=hidden name=amount value="#AMOUNT#"> <input type=hidden name=Ckname value="#Name#"> <input type=hidden name=CkAcct value="#CKACCT#"> <input type=hidden name=Ckaba value="#CKAba#"> <input type=hidden name=accepturl value="#AcceptURL#"> <input type=hidden name=declineurl value="#DeclineURL#"> <!--/MT.CK-Required--> |
<input type=hidden name=action value="ns_quicksale_check"> <input type=hidden name=amount value=" 1200.00"> <input type=hidden name=Ckname value="Joe Customer"> <input type=hidden name=CkAcct value="65487985098741"> <input type=hidden name=Ckaba value="1210354"> <input type=hidden name=accepturl value="http://AcceptURL"> <input type=hidden name=declineurl value="http://DeclineURL"> |
The electronic check information comes from the CKInfo table. (See CC.CKInfo for more detail).
Inserts the e-mail section in the Transaction form.
Call w3HTMLeComEMailInfo(“MyTemplate”,Email,”customer@client.com”) |
MT.Template |
Name of the default template to use. |
|
Table of Item-IDs of the EmailSubject and EmailText from either the ATS or the CCInfo file. (See CC.ATS and CC.CCInfo for more detail). |
EmailTo |
Email address to which order confirmation is sent. |
<!--MT.Email--> <input type=hidden name=emailfrom value="#EmailFrom#"> <input type=hidden name=emailsubject value="#EmailSubject#"> <input type=hidden name=emailtext value="#EmailText#"> <input type=hidden name=emailto value="#EmailTo#"> <!--/MT.Email--> |
<input type=hidden name=emailfrom value="sales@myshop.com"> <input type=hidden name=emailsubject value="This is your order confirmation"> <input type=hidden name=emailtext value="Your order has been confirmed…"> <input type=hidden name=emailto value=”customer@client.com"> |
The e-mail information comes from the Email table. (See User Structure Definition for more detail).
Inserts the Recurring section in the Transaction form.
Call w3HTMLeComRecurring(“MT”,”TEST0”,”MyTemplate”,”2”,”-1”,”30”,”105”) |
CHID |
Item-ID of the Clearing House. |
ATSID |
Item-ID of the Merchant. |
MT.Template |
Name of the default template to use. |
Cycle |
Recurring cycle type. (see CC.RecurCycle for detail). |
BillMax |
Maximum number of time the recurring cycle is to be active. |
Start |
Number of days after the initial payment is made before starting the recurring cycle. |
Amount |
Dollar amount to be debited on a recurring basis. |
<!--MT.Recurring--> <input type=hidden name=Recur_create value="1"> <input type=hidden name=Recur_Billingcycle value="#RecurCycle#"> <input type=hidden name=Recur_Billingmax value="#RecurMax#"> <input type=hidden name=Recur_start value="#RecurStart#"> <input type=hidden name=Recur_amount value="#RecurAmount#"> <!--/MT.Recurring--> |
<!--MT.Recurring--> <input type=hidden name=Recur_create value="1"> <input type=hidden name=Recur_Billingcycle value="2"> <input type=hidden name=Recur_Billingmax value="-1"> <input type=hidden name=Recur_start value="30"> <input type=hidden name=Recur_amount value="105.00"> <!--/MT.Recurring--> |
The Recur_create parameter is hard-coded to 1. Any value other than 1 specifies no recurring billing (in which case the recurring section is not needed).
If RecurCycle or RecurMax or RecurStart are left blank or unassigned, the default values from the ATS file are used.