Single Site License


  • Perpetual license (does not expire)
  • 1 site, unlimited servers
  • No distribution (hosted use only)
  • Commercial use allowed
$29.99 Read License

Single Site + Minfraud


  • Perpetual license (does not expire)
  • 1 site, unlimited servers
  • No distribution (hosted use only)
  • Commercial use allowed
$44.99 Read License

Developer License


  • Perpetual license (does not expire)
  • Unlimited projects
  • Can distribute code and binary products
  • Commercial use allowed
  • 1 year support
$149.99 Read License

Developer + Minfraud


  • Perpetual license (does not expire)
  • Unlimited projects
  • Can distribute code and binary products
  • Commercial use allowed
  • 1 year support
$199.99 Read License

14 Day money-back guarantee

Full refund within 14 days of purchase date.

You need to log-in or create an account
  • Create an account
  • Log-in

Please use your real name.

Activation link will be sent to this address.

Minimum 8 characters

Enter your password again

Clicking this button confirms you read and agreed to the terms of use and privacy policy.

  • Released: Sep 27, 2010
    Last Update: Jan 7, 2013
  • Language: PHP
  • Category: Ecommerce
  • Time / costs savings: 50h / $3000 *

PHP Paypal API class

Featured PHP Paypal API class
Developed by Lionite, Released Sep 27, 2010

The simplest way to handle online transactions using PayPal. Get started quickly with Express Checkout, Direct Payments, recurring payments, IPNs and more using this PHP PayPal API class.

PHP

Tags: direct payment , express checkout , ipn , masspay

Questions & Comments

You must be logged-in to vote. Log-in to your account or register now.

Or enter your name and Email
  • Greg 2 weeks ago
    does your class have a feature so users can upgrade their subscription? ie currently they have a$5/month recurring subscription and want to upgrade to the $10/month subscription

    Thanks
    • Lionite Developer 2 weeks ago
      The class has a method to update an existing recurring payment. Per Paypal restrictions, recurring payments created with Express Checkout can only be changed by 20% every 180 days. Payments created directly with a credit-card do not have this restriction.
  • Candace Dunwoodie License holderSingle Site + Minfraud 1 month ago
    How exactly do I switch it from sandbox to live?
    • Lionite Developer 1 month ago
      Hi Candace,

      There are multiple ways to do that, the most simple one is to use the `sandbox()` static method -

      Lionite_Paypal::sandbox(false)

      See the section titled `Live and Sandbox modes` under the component description for more information.
  • Marshal M 5 months ago
    Hi. I am working on a website that intends to pre-authorize an amount before transacting. So for example, UserA wants to transact, we will then pre-Auth $50 from his CC. After say 5 days and the users details check out, we want to then charge that $50. If not, then drop the auth. Does your script support this?

    See: http://www.paypalobjects.com/en_US/ebook/PP_ExpressCheckout_IntegrationGuide/HowAuthCaptureWorks.html
    • Lionite Developer 5 months ago
      Hi Marshal,

      This class does not support the authorization-capture process.
  • Matthew 6 months ago
    Hey, this looks like it might be just what I need. One question - how can I have it set up multiple recurring payment profiles at once? For example, is it possible to set up profiles for $4.99/month and $25/year in the same transaction?
    • Lionite Developer 6 months ago
      You can only create one recurring profile per transaction. If you are using the Direct Payment (direct credit-card payment), you can make as many of those as you want in the same script once you have the credit-card details. Using Express Checkout (checking out on the Paypal website), you'd have to run one checkout per profile.
  • Nathan License holderPersonal License 6 months ago
    I'm curious, why do you put "$paypal - " in front of function calls. I.e. why do this:

    $result = $paypal - directPayment($data,$items);

    Instead of this:

    $result = directPayment($data,$items);

    You do that with the other checkout functions, too. I'm confused why you do that and how it works.
    • Lionite Developer 6 months ago
      That's how you call object methods in PHP. You might want to go over OOP in PHP - http://php.net/manual/en/language.oop5.php
    • Nathan License holderPersonal License 6 months ago
      Oh, I see, the ">" is missing. The article says:

      $result = $paypal - directPayment($data,$items);

      But I think it should be:

      $result = $paypal->directPayment($data,$items);

      The other method calls in the article are like that as well. Maybe the right angle brackets are being stripped by your CMS?
    • Lionite Developer 6 months ago
      Hi Nathan,

      Thanks for noticing. I have notified the admins and they should resolve it shortly
  • Hitori License holderSingle Site + Minfraud 7 months ago
    Hi, I am looking at integrating a MassPay api that is managed from a database in php. Does your api support this? Also I need the ability to be able to setup direct debit facilites for my customers, does your api have any support for this?
    • Lionite Developer 7 months ago
      Hi Hitori,

      The component covers mass payment, note that you will need your account specifically enabled by Paypal for it to work. Refer to the section about mass payment in the component description for more information.

      I am not sure what you mean by direct debit facilities - the API supports credit card payments using the Direct Payment API (also covered in the component description). You will need a Paypal Pro account to use that (only available in the U.S and the U.K).
    • Hitori License holderSingle Site + Minfraud 7 months ago
      Thank you, for your quick reply. It seems the direct payment api would work nicely, however, I need to be able to call the api from an array of credit card details. Does the api allow for direct input without needing a form? Also Australia now has Website Payment Pro.
  • Alberto GarcĂ­a 7 months ago
    Does this library manage subscription change (if a client upgrade or downgrade or change subscription frequency)?
    • Lionite Developer 7 months ago
      This component provides a method to update an existing recurring payment profile. Not all profile parameters can be updated, for more information see the official documentation - https://www.x.com/developers/paypal/documentation-tools/api/updaterecurringpaymentsprofile-api-operation-nvp
  • SellMyApplication 7 months ago
    Any word on getting a similar component for google wallet or other popular payment gateways? Thx.
    • Lionite Developer 7 months ago
      We have no plans for developing similar components for different APIs.
  • Jaime Andres Gonzalez 7 months ago
    API provides a graphical interface where the user records the information of your payment method, then the process is carried out with paypal payment and we send the confirmation to a url defined for us, right?
    • Lionite Developer 7 months ago
      Hi Jaime,

      I didn't really understand your question. This component covers multiple APIs, including Express Checkout and Direct Payment which are different from each other. Please read the description on the component page for more details.
  • Paul Godard License holderDeveloper License 8 months ago
    Last year I 'bought' version 1.1 (in fact I am not sure I bought it) but I remember that you helped me setting it up. Do I have a license? If yes can I upgrade as my version has stopped working.
    After a successful PP transaction, my script register a failed transaction (using Lionite class).
    Paul
    • Lionite Developer 8 months ago
      Hi Paul,

      We previously had a free limited version, but we stopped distributing it. It doesn't seem that you've bought a license.