views:

153

answers:

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?

A: 

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
+2  A: 

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

code-zoop
+4  A: 

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