Method: dgCharge::AddTerminal()
AddTerminal(Terminal_nbr)
The
AddTerminal method adds a terminal to a merchant. A current
merchant must be set before calling this method (see
SetMerchant).
There is one required argument:
Terminal_nbr
A unique terminal number.
Return Value
A value of
True is returned if successful; otherwise a value of
False
is returned and the ErrorText property is set.
Code:
<%
' create an instance of the object
Set oChargeObject = Server.CreateObject("dgCharge.Charge")
' establish the merchant
bSetOK = oChargeObject.SetMerchant(42)
' process the transaction
If bSetOK Then
If Not oChargeObject.AddTerminal ("1234567890") Then
Response.Write (oChargeObject.ErrorText)
End If
End If
%>