2017 © Pedro Peláez
 

library razorpay

Razorpay PHP Client Library

image

razorpay/razorpay

Razorpay PHP Client Library

  • Thursday, June 21, 2018
  • by crims0n
  • Repository
  • 71 Watchers
  • 57 Stars
  • 88,192 Installations
  • PHP
  • 4 Dependents
  • 0 Suggesters
  • 23 Forks
  • 18 Open issues
  • 43 Versions
  • 13 % Grown

The README.md

razorpay-php

Build Status Stable License, (*1)

Official PHP library for Razorpay API., (*2)

Read up here for getting started and understanding the payment flow with Razorpay: https://docs.razorpay.com/docs/getting-started, (*3)

Prerequisites

  • A minimum of PHP 7.3 upto 8.1

Installation

  • If your project using composer, run the below command
composer require razorpay/razorpay:2.*
  • If you are not using composer, download the latest release from the releases section. You should download the razorpay-php.zip file. After that, include Razorpay.php in your application and you can use the API as usual.

Note:

This PHP library follows the following practices:, (*4)

  • Namespaced under Razorpay\Api
  • API throws exceptions instead of returning errors
  • Options are passed as an array instead of multiple arguments wherever possible
  • All requests and responses are communicated over JSON

Documentation

Documentation of Razorpay's API and their usage is available at https://docs.razorpay.com, (*5)

Basic Usage

Instantiate the razorpay php instance with key_id & key_secret. You can obtain the keys from the dashboard app (https://dashboard.razorpay.com/#/app/keys), (*6)

use Razorpay\Api\Api;

$api = new Api($api_key, $api_secret);

The resources can be accessed via the $api object. All the methods invocations follows the following pattern, (*7)

    // $api->class->function() to access the API
    //Example
    $api->payment->fetch($paymentId);

Supported Resources

Development

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

Release

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

  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.md
  4. Add a new empty "Unreleased" section at the top of CHANGELOG.md
  5. Fix links at bottom in CHANGELOG.md
  6. Commit
  7. Tag the release and push to GitHub
  8. A release should automatically be created once the travis build passes. Edit the release to add some description.

License

The Razorpay PHP SDK is released under the MIT License. See LICENSE file for more details., (*10)

The Versions

21/06 2018

dev-bind_tls_version

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

Razorpay PHP Client Library

  Sources   Download

MIT

The Requires

 

The Development Requires

by Shashank Kumar

api php client razorpay

28/05 2018

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

28/05 2018

2.2.1

2.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

28/05 2018

dev-release/v2.2.1

dev-release/v2.2.1 https://docs.razorpay.com

Razorpay PHP Client Library

  Sources   Download

MIT

The Requires

 

The Development Requires

by Shashank Kumar

api php client razorpay

25/05 2018

dev-customers_all

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

Razorpay PHP Client Library

  Sources   Download

MIT

The Requires

 

The Development Requires

by Shashank Kumar

api php client razorpay

13/04 2018

dev-Update_Readme

dev-Update_Readme 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 2017

v2.2.0

2.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

23/10 2017

dev-subscriptions-support

dev-subscriptions-support https://docs.razorpay.com

Razorpay PHP Client Library

  Sources   Download

MIT

The Requires

 

The Development Requires

by Shashank Kumar

api php client razorpay

10/10 2017

dev-release/v2.1.0

dev-release/v2.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

10/10 2017

2.1.0

2.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

21/09 2017

dev-invoices_new_endpoints

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

Razorpay PHP Client Library

  Sources   Download

MIT

The Requires

 

The Development Requires

by Shashank Kumar

api php client razorpay

03/08 2017

2.0.2

2.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

31/07 2017

2.0.1

2.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

31/07 2017

dev-transfers

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

Razorpay PHP Client Library

  Sources   Download

MIT

The Requires

 

The Development Requires

by Shashank Kumar

api php client razorpay

17/07 2017

dev-phpunit_update

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

Razorpay PHP Client Library

  Sources   Download

MIT

The Requires

 

The Development Requires

by Shashank Kumar

api php client razorpay

13/06 2017

dev-subscriptions

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

Razorpay PHP Client Library

  Sources   Download

MIT

The Requires

 

The Development Requires

by Shashank Kumar

api php client razorpay

08/03 2017

dev-notes_typecast

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

Razorpay PHP Client Library

  Sources   Download

MIT

The Requires

 

The Development Requires

by Shashank Kumar

api php client razorpay

07/03 2017

2.0.0

2.0.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

05/03 2017

dev-test_cases

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

Razorpay PHP Client Library

  Sources   Download

MIT

The Requires

 

The Development Requires

by Shashank Kumar

api php client razorpay

03/03 2017

dev-utility_fix

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

Razorpay PHP Client Library

  Sources   Download

MIT

The Requires

 

The Development Requires

by Shashank Kumar

api php client razorpay

03/01 2017

1.2.9

1.2.9.0 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

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

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

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