Download the PHP package jlkaufman/cakephp-paypal-rest-client without Composer

On this page you can find all versions of the php package jlkaufman/cakephp-paypal-rest-client. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package cakephp-paypal-rest-client

CakePHP Paypal REST Client (PaypalSource)

Introduction

This plugin is a full REST client for Paypal's API. It implements all of the functions available through the Paypal REST API.

Instead of using CURL, CakePHP's HTTPSocket class is used.

Disclaimer

Alpha Version... Probably a good idea not to use this in production yet...

Documentation: Table of Contents

  1. Installation
  2. Configuration
  3. Usage
    • Including the Paypal Model in your controller
    • Notes about response returned
    • Credit Card Payment
    • Capture an Authorization
    • Void an Authorization
    • Refund a sale

Installation

1) Clone the repository into the app/Plugins/PaypalSource directory

2) Install with composer

Configuration

In database.php add the following block and fill it out accordingly:

Usage

Including the Paypal Model in your controller

Notes about response returned

All the methods in the Paypal class will return an instance of StdClass. In the documentation we show the object in JSON form, simply for readability. You can access each member of the object using arrow notation.

Credit Card Payment

Credit card payments are easy to create. We can do one of two things; we can create a sale (a final payment), or we can authorize an amount that we will capture later.

Credit Card:

Credit Card Token:

Example response

Capture an Authorization

To capture an authorization one must create the Authorization (Credit Card Payment with $type set to authorization) and get the Authorization ID from the response.

Here's an example of capturing an authorization:

Example Capture Response

Void an Authorization

There are all sorts of reasons one would void an authorization (client canceled the transaction, some other reason that would mean you shoudln't be charging them, whatever).

To void an authorization one must create the Authorization (Credit Card Payment with $type set to authorization) and get the Authorization ID from the response.

Here's an example of voiding an authorization:

Example Response

Refund a sale

Sometimes it's necessary to refund a transaction. To refund a sale one must first create the Sale (Credit Card Payment with $type set to sale) and get the Sale ID from the response.

Example Response

All versions of cakephp-paypal-rest-client with dependencies

PHP Build Version
Package Version
Requires php Version >=5.3.0
composer/installers Version *
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package jlkaufman/cakephp-paypal-rest-client contains the following files

Loading the files please wait ....