Skip to content

Releases: razorpay/razorpay-php

2.0.2

03 Aug 11:28
Compare
Choose a tag to compare

Added

  • Support for creating and fetching transfers
  • Support for creating reversals on transfers

Note: Please download the razorpay-php.zip file, instead of the source zips. The razorpay-php.zip is pre-compiled to include all dependencies.

2.0.1

31 Jul 13:34
Compare
Choose a tag to compare

Fixed

  • Webhook signature verification
  • Conditional require of Request class

The webhook signature verification method was fixed to allow custom secrets for webhooks.
Require of Request class was made conditional. Import is done only if not already defined.

2.0.0

07 Mar 02:27
Compare
Choose a tag to compare

Added

  • Support for custom Application header ($api->setAppDetails($title, $version))
  • Support for card entity ($card = $api->card->fetch($cardId))
  • Support for Webhook and Order Signature verification:
    Razorpay\Api\Utility::verifyPaymentSignature(['razorpay_signature' => '', 'razorpay_order_id' => '', 'razorpay_payment_id' => ''])
    throws Razorpay\Errors\SignatureVerificationError if fails
  • Support for direct refund creation via Razorpay\Api\Refund::create():
    $refund = $api->refund->create(array('payment_id' => $id))
  • Support for Utility functions via Razorpay\Api\Utility::verifyPaymentSignature and Razorpay\Api\Utility::verifyWebhookSignature:
    verifyWebhookSignature($payload = '{requestbody}', $expectedSignature = 'X-Razorpay-Signature header')
    throws Razorpay\Errors\SignatureVerificationError if signature doesn't match
  • Support for case insensitive error codes
  • Support for 2xx HTTP status codes

Changed

  • Razorpay\Api\Payment::refunds() now returns a Razorpay\Api\Collection object instead of Razorpay\Api\Refund object
  • Razorpay\Api\Api::$baseUrl, Razorpay\Api\Api::$key and Razorpay\Api\Api::$secret are now protected instead of public
    Api::getKey() and Api::getSecret() are provided instead

1.2.9

03 Jan 09:37
Compare
Choose a tag to compare

Added

  • Support for creating and fetching Invoices

1.2.8

12 Oct 12:22
Compare
Choose a tag to compare
  • This adds Customer and Token class support
  • You can find the changelog at [this link][1.2.8]

Note: Please download the razorpay-php.zip file, instead of the source zips. The razorpay-php.zip is pre-compiled to include all dependencies.

1.2.7

21 Sep 12:35
Compare
Choose a tag to compare

Release Notes:

  • Increases the request timeout to 30 seconds for all requests.
  • You can find the changelog at this link

Note: Please download the razorpay-php.zip file, instead of the source zips. The razorpay-php.zip is pre-compiled to include all dependencies.

[release] New release 1.2.6

02 May 16:20
Compare
Choose a tag to compare

1.2.5

28 Mar 06:41
Compare
Choose a tag to compare

Please download the razorpay-php.zip file if you are not using composer

1.2.4

17 Mar 14:41
Compare
Choose a tag to compare
[release] New release 1.2.4

Order Support

24 Feb 12:15
Compare
Choose a tag to compare
  • Add support for Orders

Please download the razorpay-php.zip file