SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Thread: How to accept credit cards online in asp

Hybrid View

  1. #1
    SitePoint Zealot
    Join Date
    Jan 2005
    Location
    London
    Posts
    182
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Talking How to accept credit cards online in asp

    Hi There

    I have built a shopping cart and have reached the point where I need to create the payment page. At the moment I have a checkout page with all the customers details i.e name, address etc, credit card details, order total, product name etc as fields in an form. It is at this point that I am not sure what happens next. I am using a windows server (www.7host.com) with an MS Access database. I would be grateful if some one could explain to me exactly how I use the variables to take the payment and also how the information is sent back from the bank once the order has been processed. I have read a few articles, but they just don't give you the actual practical steps involved with the asp pages/database, instead they mention payment gateways /merchant accounts in general. It would really help me if someone could explain this one.

    Many thanks in advance.

  2. #2
    Afrika
    Join Date
    Jul 2004
    Location
    Nigeria
    Posts
    1,723
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Ask your web host which merchant account they use and sign up with them, or if they recommend 3rd party payment providers, then contact them, e.g. www.ccbill.com www.ibill.com , www.authorize.net etc

    Also check out www.worldpay.com and get a ssl certificate

    But first ask your webhost.

    Though i woudl advice that you do know what you are doing, before you handle other peoples money :-)

  3. #3
    SitePoint Addict danfran's Avatar
    Join Date
    Jan 2005
    Location
    New York City
    Posts
    244
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    There are basically two ways to take credit cards online. One is where the customer never leaves your site and you program all of the server-to-server communication required for the transaction. Authorizenet calls this their "direct response" system. You'll need a component (DLL) to get this stuff working.

    The other kind is where you can forward the customer to the payment processor's site and after they pay, they get sent back to your website, probably with some querystring fields indicating the result of transaction. (or maybe a server-to-server call initiated by the payment processor, not you)

    AuthorizeNet doesn't explicitly offer you a component (last I saw), which is not to say that you couldn't get one. (Many will work WinHTTP, Softwing.asptear, msXML)
    Although, guys like PlugNPay have a nice system already build with cut'n'paste code and easy DLL registration..

    AuthorizeNet simply uses name/value pairs all lumped together in one big string. "CardNum=1234345345&Name=Bob%20Smith&City=Miami" sorta thing. They send data back to you the same way. "Result=true&ErrCode=blah" You have to split() the string and break it up.

    Other companies simply give you a property to reference.
    objTransaction.CardNum = "234298349823"
    objTransaction.DoTRAN()
    result = objTrransaction.Result

    Dan

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •