How to set up payment method with PHP

Posted on 2012-09-05
Last Modified: 2016-03-24
Can anyone show me how to set up payment method (like MasterCard, Visa, Paypal and so on) using PHP? Please explain as detailed as possible, I'm newbie here. Thanks.
Question by:jszeto
    LVL 58

    Assisted Solution


    As for credit cards, that is probably beyond the realm of EE, you need internet merchant account, acquiring bank, service provider, your website has to pass strict PCI compliance...
    LVL 13

    Accepted Solution

    Paypal Does accept credit cards as payments from people who doesnt have Paypal Accounts.

    Try Stripe.Its better .


    Documentation :

    LVL 58

    Expert Comment

    I didn't say they didn't but since they asked about MasterCard, Visa, Paypal you can only assume they know what PayPal is and were asking about taking credit cards directly on their site as well as PayPal.
    Stripe is US based only
    Moneybookers is another payment provider like PayPal.
    LVL 82

    Expert Comment

    by:Dave Baldwin
    As Gary said, you need an internet merchant account tied to a bank account and a payment gateway to post the payments to.  Paypal can combine all of that for you.  In any case, you need to sign up and get the API code from service you choose.  They are all different.
    LVL 107

    Assisted Solution

    by:Ray Paseur
    Use PayPal, full stop.  Its costs are comparable to credit cards, it's easy to use, lots of people understand it, etc.  The direct interface to the banking system required for the credit cards is going to cost you a ton of time and money, and PayPal has already abstracted this for you.

    As far as "showing you how to set it up" that is beyond the scope of anything we can offer here at EE.  It's got a lot of moving parts.  The last time I read the developers guides, there were hundreds of pages of documentation that you needed to know.  So start your learning adventures here:

    If you decide (as you probably should) that hiring a professional would get you to a solution faster, you may be able to find a developer through their network.

    HTH, ~Ray
    LVL 13

    Assisted Solution

    I would head on over to paypal and create a business account with them...(no costs involved).  Once you create that account, they have several tutorials and walkthroughs that will help you navigate through the craziness of online merchants.

    Paypal does off a nice integration into you website that doesn't even show it's using paypal, but that's a lot of $$ / month.  You can use  the free stuff with paypal with little to no effort on your part.

    Also, paypal can take all of the major payments I all you really need is that.  And YES, CHOOSE PAYPAL...they are secure and insure you and the buyer...

    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

    This article will give core knowledge of JavaScript and will head in to your first JavaScript program. I am Durvesh Naik and I am here to deal with this series of JavaScript. I will teach you JavaScript in part wise , as its quite boring to read big…
    Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
    In this tutorial viewers will learn how to style transparent/translucent elements using alpha transparency in CSS Start with a normal styled element, such as a div.: Define its "background-color" property as "rgba (255, 255, 255, .5): The numbers in…
    The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

    754 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

    26 Experts available now in Live!

    Get 1:1 Help Now