isheikh
10-22-2004, 08:22 PM
Hi,
I have made shopping cart in php. I am very new to this so please bear with me. My question is once customer finally click on "sumbit" to buy products , what information do I need to send to the gateway so that they can process the credit card.
I understand it will be.
1. credit card type
2. credit card Number
3. expiry date
4. address for credit card.
5. total including tax
whats else do I need to send?
Thanks
Corey Bryant
10-23-2004, 10:31 AM
Check with the gateway that you are using. Each one is a bit different. A lot of times, they might not even need to know the credit card type because they know what type of credit card it is just by the number.
You might see if they allow an order number to be processed. This way, it can help you track your orders. Another field might be for the CVV. And you might consider also passing the consumer name over to the gateway.
Also each gateway will have some other specific information, like LinkPoint will need a store number (assigned by LinkPoint). Verisign will want a vendor, user, and password.
Here is an example of some information passed over to LinkPoint Connect:
mode: (a hidden field) your selected payment mode (payplus, in this case)
chargetotal: (a hidden field) the total amount of the customer's order, including tax and shipping
storename: (a hidden field) your store number
bname: the customer's billing name
baddr1: your customer's billing address
bcity: your customer's billing city
bstate: your customer's billing state
bstate2: your customer's billing state outside the US (required only if the billing country is not within the US)
bcountry: your customer's billing country (required only if the customer's billing country is not the US)
bzip: your customer's billing zip code
You can also pass this information over as well:
baddr2: a second address line for the billing address
email: the customer's e-mail address
oid: order ID #
sname: the name of the person to ship the order to
saddr1: shipping address, line 1
saddr2: shipping address, line 2
scity: shipping city
sstate: shipping state
sstate2: shipping state (if outside the US)
szip: shipping zip code
scountry: shipping country
phone: your customer's phone number
fax: your customer's fax number
subtotal: the order subtotal
shipping: the charge for shipping the order
tax: the tax on the order
total: the order total (this field should automatically be filled in from the chargetotal)
Of course using the API, you can pass over the credit card information as well. LinkPoint Connect was designed to use LinkPoint's secure website to process and capture credit card data while the API was designed to process and capture credit card data on your secure website. Verisign and Authorizenet.com also offer these services as well. But each gateway is different & they use different fields.