Solved

Is there any beginners tutorial for adding Payment Gateway on PHP Site ?

Posted on 2016-11-28
5
27 Views
Last Modified: 2016-11-29
Hi Experts ,

Where can I find the Beginners tutorial for Payment gateway on PHP Site ?
0
Comment
Question by:karthik80c
5 Comments
 
LVL 82

Expert Comment

by:Dave Baldwin
Comment Utility
I don't think there is one.  Payment Gateways for accepting credit cards over the internet are subject to all of the PCI security standards and are not simple.
1
 
LVL 108

Expert Comment

by:Ray Paseur
Comment Utility
A more practical solution might be to use PayPal.
https://developer.paypal.com/

But give yourself plenty of time to master the fundamentals.  Even as simple and well-documented as PayPal is, it's still not beginner material.
1
 
LVL 51

Assisted Solution

by:Julian Hansen
Julian Hansen earned 250 total points
Comment Utility
Each payment provider has their own API - they usually have documentation and libraries that tell you how to integrate your site into their gateway. Each one is different so to there is no generic source for this information.

There are usually two options that are available - form based and server based.

Form based is where you redirect your users to the PG site who then creates the HTTPS connection, displays the form and handles the capturing of the CC / CVV data.

The server based approach is where you capture the CC / CVV data over a secure connection and then use a server to server call to validate / authorise the transaction.

How each is implemented differs from provider to provider. For instance some have have an API that requires you to bundle all your form data together in one string and then encrypt that string with a secret key before sending the data to them - they in turn send back the response using the same method.

To answer this question you need to select the Payment Gateway you want to use  and then ask them for their API documentation. The latter is usually very comprehensive with working samples and libraries that allow you to get up and running fairly quickly.

Some proviso's - the landscape for online transacting is not a simple one. If you are new to this area you would do well to consult with an expert in the field on any solution you come up with prior to releasing it into the wild.

Awareness of things like PCI-DSS is key to ensuring you don't run afoul of the banks - especially if you plan on capturing and potentially storing sensitive data.

Solutions like PayPal are an option but be aware that the availability and implementation of PP varies from country to country.
1
 
LVL 12

Accepted Solution

by:
Phil Phillips earned 250 total points
Comment Utility
Another thing to look at is either braintree or stripe.  They have pretty good coverage as far as foreign currency goes. They also support other payment methods, such as PayPal, ApplePay, AndroidPay, etc.

As Dave mentioned, coding a payment gateway isn't a small task, especially with PCI in mind. Services like Braintree or stripe make it a bit easier, and they have php libraries available.
2
 
LVL 82

Expert Comment

by:Dave Baldwin
Comment Utility
I've done both Paypal and Braintree integration.  Both are a total pain the first time thru.  Their developer support is abominable.  They keep assuming that you know what they know.  Which of course you don't or you wouldn't be asking them questions.
1

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
This article discusses how to create an extensible mechanism for linked drop downs.
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now