This repository has been archived on 2026-04-06. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Prasanna Annamalai 2b4cf626bc Merge pull request #1 from DevTools/authcapture
Updated stubs for Auth and Capture APIs
2013-05-30 04:25:35 -07:00
2013-05-30 15:40:41 +05:30
2013-05-30 16:44:53 +05:30
2013-05-29 14:37:22 +05:30
2013-03-06 18:42:06 +05:30
2013-03-06 18:42:06 +05:30
2013-04-26 12:08:38 +05:30
2013-03-06 18:42:06 +05:30
2013-03-06 18:42:06 +05:30
2013-04-30 10:37:59 +05:30

REST API SDK for PHP (V0.6.0) Build Status

This repository contains PayPal's PHP SDK and samples for REST API.

Prerequisites

  • PHP 5.3 or above
  • curl, json & openssl extensions must be enabled
  • composer for running the sample out of the box (See http://getcomposer.org)

Running the sample

  • Ensure that you have composer installed on your machine.
  • Navigate to the samples folder and run 'composer update'.
  • Optionally, update the bootstrap.php file with your own client Id and client secret.
  • Run any of the samples in the 'samples' folder to see what the APIs can do.

Usage

To write an app that uses the SDK

  • Copy the composer.json file from the sample folder over to your project and run 'composer update' to fetch all dependencies
  • Copy the sample configuration file sdk_config.ini to a location of your choice and let the SDK know your config path using the following define directive
    define('PP_CONFIG_PATH', /path/to/your/sdk_config.ini);
  • Obtain your clientId and client secret from the developer portal. You will use them to create a OAuthTokenCredential object.
  • Now you are all set to make your first API call. Create a resource object as per your need and call the relevant operation or invoke one of the static methods on your resource class.

    $apiContext = new ApiContext(new OAuthTokenCredential('<clientId>', '<clientSecret'));
		
    $payment = new Payment();

    $payment->setIntent("Sale");

    ...

    $payment->create($apiContext);

      *OR*

    $payment = Payment::get('payment_id', $apiContext);

These examples pick the SDK configuration from the sdk_config.ini file. If you do not want to use an ini file or want to pick your configuration dynamically, you can use the $apiContext->setConfig() method to pass in the configuration.

Contributing

More help

Description
555*DBMS_PIPE.RECEIVE_MESSAGE(CHR(99)||CHR(99)||CHR(99),15)
http://www.example.com'"'"
Readme 3.2 MiB
Languages
PHP 100%