You are here: Discussion Register  |  Login
 
Discussion Forums
 
ForumForumGateway Web Ser...Gateway Web Ser...CustomersCustomersHow do I add credit card information for a customer?How do I add credit card information for a customer?
Disabled 
Previous
 
Next Next
New Post
 6/26/2009 12:02 AM
 
 Modified By Kevin Lenahan  on 6/27/2009 12:04:30 AM

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.

Disabled 
Previous
 
Next Next
ForumForumGateway Web Ser...Gateway Web Ser...CustomersCustomersHow do I add credit card information for a customer?How do I add credit card information for a customer?

 

Privacy Statement  |  Terms Of Use
Copyright 2011 by ClearStar, Inc.