PayPal PHP SDK Class Library

PayPal PHP SDK Class Library

Released 5 years ago , Last update 1 year ago

Easily integrate PayPal API web services for Payments Pro, Adaptive Payments, Adaptive Accounts, Invoicing, Permissions, or PayFlow into any PHP project.

Available on Github!

This class library includes methods to easily integrate all of PayPal's API's including PayPal Payments Pro, Adaptive Payments, Adaptive Accounts, Permissions, and PayFlow.

The class makes it extremely quick and easy to tie PayPal into your applications. It comes with template solution files for nearly every API call available. All you have to do is populate the request parameters and you'll get a PHP array result that includes everything you'll need from the API call.

Current calls included are:

PayPal Payments Pro

  • AddressVerify
  • BillAgreementUpdate
  • BillOutstandingAmount
  • CreateRecurringPaymentsProfile
  • DoAuthorization
  • DoCapture
  • DoDirectPayment
  • DoExpressCheckoutPayment
  • DoMobileCheckoutPayment
  • DoNonReferencedCredit
  • DoReauthorization
  • DoReferenceTransaction
  • DoVoid
  • GetAccessPermissionsDetails
  • GetAuthDetails
  • GetBalance
  • GetBillingAgreementCustomerDetails
  • GetExpressCheckoutDetails
  • GetTransactionDetails
  • ManagePendingTransactionStatus
  • ManageRecurringPaymentsProfileStatus
  • MassPay
  • RefundTransaction
  • SetAccessPermissions
  • SetExpressCheckout
  • SetMobileCheckout
  • TransactionSearch
  • UpdateAccessPermissions
  • UpdateRecurringPaymentsProfile

PayPal Adaptive Payments

  • AddBankAccount
  • AddPaymentCard
  • CancelInvoice
  • CancelPermissions
  • CancelPreapproval
  • CreateAccount
  • CreateAndSendInvoice
  • CreateInvoice
  • DeleteInvoice
  • ExecutePayment
  • GenerateInvoiceNumber
  • GetAccessToken
  • GetAdvancedPersonalData
  • GetBasicPersonalData
  • GetFundingPlans
  • GetInvoiceDetails
  • GetPaymentOptions
  • GetPermissions
  • GetShippingAddress
  • GetVerifiedStatus
  • MarkInvoiceAsPaid
  • MarkInvoiceAsRefunded
  • MarkInvoiceAsUnpaid
  • Pay
  • PaymentDetails
  • Preapproval
  • PreapprovalDetails
  • Refund
  • RemindInvoice
  • RequestPermissions
  • SearchInvoices
  • SendInvoice
  • SetFundingSourceConfirmed
  • SetPaymentOptions
  • UpdateInvoice
  • BMButtonSearch

PayPal PayFlow

  • Authorization
  • Balance Inquiry
  • Credit
  • Delayed Capture
  • Voice Authorization
  • Inquiry
  • Data Upload
  • Duplicate Transaction
  • Sale
  • Void
  • 5 19
  • 4 5
  • 3 3
  • 2 0
  • 1 0
27 Reviews Read Reviews


14 day 14-day money-back guarantee



The GNU GPL is an open-source license.

Need custom services for this product? Get a quote
License » GNU GPL Download

Get A Quote

What do you need?
  • Custom development
  • Integration
  • Customization / Reskinning
  • Consultation
When do you need it?
  • Soon
  • Next week
  • Next month
  • Anytime

Thanks for getting in touch!

Your quote details have been received and we'll get back to you soon.

or Get a quote

for customization or integration services

Or enter your name and Email
  • AK Alisha Khan 2 years ago
    Hi, i want to payment through paypal as a third party i wnat to configure and embed this any one help me to configure and use this and any demo? thanks
    • Andrew Angell Publisher 2 years ago
      Are you trying to build an app that makes PayPal API calls on behalf of 3rd party users?
  • SM stan manly 2 years ago
    Hi, great library! Can you help with integration into laravel 4 installation please? I have added the library via composer, but need help with the config-sample file. Where exactly does it go in the installation and how do i call it in my controller? Many thanks!
    • Andrew Angell Publisher 2 years ago
      Laravel has its own way of handling config files from within /app/config/. In this case you could create a file at /app/config/paypal.php and add the values in there as environment variables, which are then loaded based on the detected environment as configured in /bootstrap/start.php. For more details on that I'd review the Laravel Configuration documentation ( Also, I'd take a look at this other project of mine that I'm calling PayPal Glass ( It's not completed yet, but the idea with it is that I'm basically replicating the user interface with my class library inside a Laravel 4 project. What's done so far is fully functional and should give you guidance on how to set everything up. Specifically, I'd take a look at /app/models/PayPal.php for an idea of how I'm building the library templates into a Laravel model. I only have a few of the calls built in so far, but once I get them all done this will make it very quick and easy to hit PayPal's API's from within Laravel. Feel free to help me get that done and send a pull request on GitHub if you want to! :)
  • JT John T.Emmatty 2 years ago
    We are contemplating on using your services on the web app we are developing, We have following requirements, could you please go through this list of requirements and confirm that your wrapper class' is handling it? Our's is a multisided services platform, an employer assigns a freelancer to do some job. Freelancer will create partial invoices until the full value of the job is realized. We sit as a middle man, and does the job of forwarding the invoice to employer and transfer the amount collected from the employer to the corresponding freelancer, after taking a cut. 1) We need to provide seamless integration on invoicing, The freelancer will use our web interface to create/send invoice. We will record the cost of the invoice in our database. 2) It is the employers prerogative, to decide when to respond on the invoice. Say, he responded after 10 days of receipt of the invoice. When the payment is made our website traps it and records it in the database. 3) When our web app come to know that a payment is made by the employer, we will transfer the amount (after taking a cut) to the freelancer.(adaptive payments) Can please advice us on which of your offerings is suitable to the above said scenarios?
    • Andrew Angell Publisher 2 years ago
      Hi John, My general PHP class library will handle all of that for you. It has Adaptive Payments integrated with samples and template files so it's quick and easy to get up-and-running. If you need help beyond what my docs and samples provide I can certainly provide some one-on-one consulting, but I'd have to bill for that sort of direct training. Let me know if you're interested. Thanks!
    • JT John T.Emmatty 2 years ago
      Thanks for the reply, i willl certainly go through this. Well, how much do you charge for an one-on-one consulting?
    • Andrew Angell Publisher 2 years ago
      My standard rate is $100/hr.