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

强颜欢笑 提交于 2019-11-30 19:43:30

问题


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?


回答1:


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.

  • PayPal Technical Documentation

  • PayPal Sandbox

  • 2CO Developer center

  • Authorize.Net Developer center




回答2:


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




回答3:


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

It discusses how the money flows in credit card processing .




回答4:


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.




回答5:


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.



来源:https://stackoverflow.com/questions/1938714/what-is-a-good-tutorial-or-book-to-learn-credit-card-processing-using-php

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!