3

I am looking for a good tutorial or book that explains how to process a customer's credit card from a form on your site. I read something about using curl, but it wasn't a complete tutorial. I am looking for a lesson that will take me from step 1 to actually charging a customer's credit card.

What is a good tutorial or book to learn credit card processing using PHP?

zeckdude
  • 15,877
  • 43
  • 139
  • 187

5 Answers5

4

Payment gateway integration varies from provider to provider. There are many providers like paypal, authorize.net, CCAvenue, 2CO, etc. So there's no definite universal way of integrate any and all such providers in general. So you need to first conclude on which provider you wish to use and then study integration at respective provider's developer center website.

Once you get to integrate your first provider successfully, you will find subsequent provider integrations very easy.

Here are some references for you to start with.

this. __curious_geek
  • 42,787
  • 22
  • 113
  • 137
2

What about using an already existing provider of a service like this, and use their api? Paypal for instance?

code-zoop
  • 7,312
  • 8
  • 47
  • 56
1

Here is another one. http://ebooks.bigbinary.com/

It discusses how the money flows in credit card processing .

Nick Vanderbilt
  • 2,475
  • 3
  • 27
  • 33
0

Here's a huge tip, if you set up a sandbox/testing account; MAKE sure it's setup for e-commerce/card not present.

Authorize.net gave me a retail test account which would only accept credit cards manually entered.....wasted a few hours trying to figure out why my form wasn't submitting.

Pick a provider and follow a tutorial. I'd imagine you'd have an easier time finding a PHP matching tutorial for making a form than say....python or ruby.

John Conde's blog has a bunch of tutorials on Authorize.net's gateyway. He works for Authorize.net btw.

deek
  • 1,085
  • 1
  • 9
  • 27
0

When you set up a merchant account with an online payment gateway they provide you with complete instructions on how to interface with it and usually some sample code.

Azeem.Butt
  • 5,855
  • 1
  • 26
  • 22