2017 © Pedro Peláez
 

library razorpay

Razorpay PHP Client Library

image

99roomz/razorpay

Razorpay PHP Client Library

  • Saturday, December 31, 2016
  • by phpindia1
  • Repository
  • 2 Watchers
  • 0 Stars
  • 16 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 23 Forks
  • 0 Open issues
  • 26 Versions
  • 0 % Grown

The README.md

razorpay-php

Build Status Latest Stable Version License, (*1)

Razorpay client PHP Api. The api follows the following practices:, (*2)

  • namespaced under Razorpay\Api
  • call $api->class->function() to access the api
  • api throws exceptions instead of returning errors
  • options are passed as an array instead of multiple arguments wherever possible
  • All request and responses are communicated over JSON
  • A minimum of PHP 5.3 is required

Installation

  • If your project uses composer, add following to composer.json
{
    "require": {
        "razorpay/razorpay": "1.*"
    }
}

Then, run composer update. If you are not using composer, download the latest release from the releases section. You should download the razorpay-php.zip file., (*3)

After that include Razorpay.php in your application and you can use the API as usual., (*4)

Usage

use Razorpay\Api\Api;

$api = new Api($api_key, $api_secret);
$api->payment->all($options); // Returns array of payment objects
$payment = $api->payment->fetch($id); // Returns a particular payment
$api->payment->fetch($id)->capture(array('amount'=>$amount)); // Captures a payment
$api->payment->fetch($id)->refund(); // Refunds a payment 
$api->payment->fetch($id)->refund(array('amount'=>$refundAmount)); // Partially refunds a payment

// To get the payment details
echo $payment->amount;
echo $payment->currency;
// And so on for other attributes

For further help, see our documentation on https://docs.razorpay.com., (*5)

Developing

See the doc.md file for getting started with development., (*6)

License

The Razorpay PHP SDK is released under the MIT License., (*7)

Release

Steps to follow for a release:, (*8)

  1. Merge the branch with the new code to master.
  2. Bump the Version in src/Api.php.
  3. Rename Unreleased to the new tag in CHANGELOG
  4. Fix links at bottom in CHANGELOG
  5. Commit
  6. Tag the release and push to GitHub
  7. Create a release on GitHub using the website with more details about the release

The Versions

31/12 2016

dev-master

9999999-dev https://docs.razorpay.com

Razorpay PHP Client Library

  Sources   Download

MIT

The Requires

 

The Development Requires

by Shashank Kumar

api php client razorpay

30/11 2016

dev-add_resource_class

dev-add_resource_class https://docs.razorpay.com

Razorpay PHP Client Library

  Sources   Download

MIT

The Requires

 

The Development Requires

by Shashank Kumar

api php client razorpay

12/10 2016

1.2.8

1.2.8.0 https://docs.razorpay.com

Razorpay PHP Client Library

  Sources   Download

MIT

The Requires

 

The Development Requires

by Shashank Kumar

api php client razorpay

11/10 2016

dev-fix_late_binding

dev-fix_late_binding https://docs.razorpay.com

Razorpay PHP Client Library

  Sources   Download

MIT

The Requires

 

The Development Requires

by Shashank Kumar

api php client razorpay

11/10 2016

dev-add_customer

dev-add_customer https://docs.razorpay.com

Razorpay PHP Client Library

  Sources   Download

MIT

The Requires

 

The Development Requires

by Shashank Kumar

api php client razorpay

21/09 2016

1.2.7

1.2.7.0 https://docs.razorpay.com

Razorpay PHP Client Library

  Sources   Download

MIT

The Requires

 

The Development Requires

by Shashank Kumar

api php client razorpay

21/09 2016

dev-request-timeout

dev-request-timeout https://docs.razorpay.com

Razorpay PHP Client Library

  Sources   Download

MIT

The Requires

 

The Development Requires

by Shashank Kumar

api php client razorpay

16/05 2016

dev-readme-update

dev-readme-update https://docs.razorpay.com

Razorpay PHP Client Library

  Sources   Download

MIT

The Requires

 

The Development Requires

by Shashank Kumar

api php client razorpay

02/05 2016

1.2.6

1.2.6.0 https://docs.razorpay.com

Razorpay PHP Client Library

  Sources   Download

MIT

The Requires

 

The Development Requires

by Shashank Kumar

api php client razorpay

28/03 2016

1.2.5

1.2.5.0 https://docs.razorpay.com

Razorpay PHP Client Library

  Sources   Download

MIT

The Requires

 

The Development Requires

by Shashank Kumar

api php client razorpay

17/03 2016

1.2.4

1.2.4.0 https://docs.razorpay.com

Razorpay PHP Client Library

  Sources   Download

MIT

The Requires

 

The Development Requires

by Shashank Kumar

api php client razorpay

17/03 2016

dev-add_set_header

dev-add_set_header https://docs.razorpay.com

Razorpay PHP Client Library

  Sources   Download

MIT

The Requires

 

The Development Requires

by Shashank Kumar

api php client razorpay

24/02 2016

1.2.3

1.2.3.0 https://docs.razorpay.com

Razorpay PHP Client Library

  Sources   Download

MIT

The Requires

 

The Development Requires

by Shashank Kumar

api php client razorpay

24/02 2016

dev-orders

dev-orders https://docs.razorpay.com

Razorpay PHP Client Library

  Sources   Download

MIT

The Requires

 

The Development Requires

by Shashank Kumar

api php client razorpay

17/02 2016

1.2.2

1.2.2.0 https://docs.razorpay.com

Razorpay PHP Client Library

  Sources   Download

MIT

The Requires

 

The Development Requires

by Shashank Kumar

api php client razorpay

17/02 2016

dev-leaner-release

dev-leaner-release https://docs.razorpay.com

Razorpay PHP Client Library

  Sources   Download

MIT

The Requires

 

The Development Requires

by Shashank Kumar

api php client razorpay

17/02 2016

1.2.2-alpha1

1.2.2.0-alpha1 https://docs.razorpay.com

Razorpay PHP Client Library

  Sources   Download

MIT

The Requires

 

The Development Requires

by Shashank Kumar

api php client razorpay

20/01 2016

1.2.1

1.2.1.0 https://docs.razorpay.com

Razorpay PHP Client Library

  Sources   Download

MIT

The Requires

 

The Development Requires

by Shashank Kumar

api php client razorpay

20/01 2016

dev-version-releases

dev-version-releases https://docs.razorpay.com

Razorpay PHP Client Library

  Sources   Download

MIT

The Requires

 

The Development Requires

by Shashank Kumar

api php client razorpay

20/01 2016

1.2.1-alpha1

1.2.1.0-alpha1 https://docs.razorpay.com

Razorpay PHP Client Library

  Sources   Download

MIT

The Requires

 

The Development Requires

by Shashank Kumar

api php client razorpay

23/10 2015

1.2.0

1.2.0.0 https://docs.razorpay.com

Razorpay PHP Client Library

  Sources   Download

MIT

The Requires

 

The Development Requires

by Shashank Kumar

api php client razorpay

22/10 2015

1.1.0

1.1.0.0 https://docs.razorpay.com

Razorpay PHP Client Library

  Sources   Download

MIT

The Requires

 

The Development Requires

by Shashank Kumar

api php client razorpay

22/10 2015

1.2-alpha1

1.2.0.0-alpha1 https://docs.razorpay.com

Razorpay PHP Client Library

  Sources   Download

MIT

The Requires

 

The Development Requires

by Shashank Kumar

api php client razorpay

20/03 2015

1.0.2

1.0.2.0 https://docs.razorpay.com

Razorpay PHP Client Library

  Sources   Download

MIT

The Requires

 

The Development Requires

by Shashank Kumar

api php client razorpay

04/03 2015

1.0.1

1.0.1.0 https://docs.razorpay.com

Razorpay PHP Client Library

  Sources   Download

MIT

The Requires

 

The Development Requires

by Shashank Kumar

api php client razorpay

18/01 2015

1.0.0

1.0.0.0 http://docs.razorpay.com

Razorpay PHP Client Library

  Sources   Download

MIT

The Requires

 

The Development Requires

by Shashank Kumar

api php client razorpay