Solved

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

Posted on 2016-11-28
5
51 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 83

Expert Comment

by:Dave Baldwin
ID: 41904583
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
ID: 41904621
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 53

Assisted Solution

by:Julian Hansen
Julian Hansen earned 250 total points
ID: 41904734
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
ID: 41905006
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 83

Expert Comment

by:Dave Baldwin
ID: 41905020
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This article will explain how to display the first page of your Microsoft Word documents (e.g. .doc, .docx, etc...) as images in a web page programatically. I have scoured the web on a way to do this unsuccessfully. The goal is to produce something …
Author Note: Since this E-E article was originally written, years ago, formal testing has come into common use in the world of PHP.  PHPUnit (http://en.wikipedia.org/wiki/PHPUnit) and similar technologies have enjoyed wide adoption, making it possib…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

863 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

23 Experts available now in Live!

Get 1:1 Help Now