The customer can be charged by credit card if credit card information has been set up for the customer. In order for the card to be charged before an order is processed remember to enable Pay Per Profile on the customer. Business owners can charge the customer’s credit card while processing invoices from Transact as well.
Here is an example of how you could add credit card information for a customer:
/* Get a reference to the web service */
using (GatewaySample.net.clearstar.gateway.customer.Customer gwCustomer = new GatewaySample.net.clearstar.gateway.customer.Customer())
{
/* Add credit card information. */
XmlNode nodeCustomer = gwCustomer.AddCreditCard("myUserName", "myPassword", myBOID, "myCustID", "0123456789012", “000”, “John”, “Smith”, “ACME Inc.”,
“01/01/20012”, “111 New ST.”, “Atlanta”, “GA”, “30009”);
}
XML Response:
<AddCreditCard xmlns="">
<ErrorStatus>
<Code></Code>
<Type></Type>
<Message></Message>
</ErrorStatus>
<CreditCard>
<sNewCreditCard>.</sNewCreditCard>
</CreditCard>
</AddCreditCard>
Additional information is provided in the documentation and more example code is provided in the Gateway Sample application.