From 902607ad00fe7cad411b34f761438b804b7d1786 Mon Sep 17 00:00:00 2001 From: Abhay Rana Date: Thu, 17 Mar 2016 20:05:45 +0530 Subject: [PATCH] [release] New release 1.2.4 --- CHANGELOG | 10 +++++++--- src/Api.php | 2 +- src/Entity.php | 2 ++ 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/CHANGELOG b/CHANGELOG index c7b24b6d..caa3a89c 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -4,7 +4,10 @@ Changelog for Razorpay-PHP SDK. ## [Unreleased] ### Added -- Add support for overriding request headers + +## [1.2.4] - 2016-03-17 +### Added +- Add support for overriding request headers via setHeader ## [1.2.3] - 2016-02-24 ### Added @@ -32,8 +35,9 @@ Changelog for Razorpay-PHP SDK. - Initial Release -[Unreleased]: https://github.com/razorpay/razorpay-php/compare/1.2.0...HEAD +[Unreleased]: https://github.com/razorpay/razorpay-php/compare/1.2.4...HEAD [1.2.1]: https://github.com/razorpay/razorpay-php/compare/1.2.1...1.2.0 [1.2.0]: https://github.com/razorpay/razorpay-php/compare/1.2.0...1.1.0 [1.2.2]: https://github.com/razorpay/razorpay-php/compare/1.2.2...1.2.1 -[1.2.3]: https://github.com/razorpay/razorpay-php/compare/1.2.3...1.2.2 \ No newline at end of file +[1.2.3]: https://github.com/razorpay/razorpay-php/compare/1.2.3...1.2.2 +[1.2.4]: https://github.com/razorpay/razorpay-php/compare/1.2.4...1.2.3 \ No newline at end of file diff --git a/src/Api.php b/src/Api.php index c26f444f..70a4c2ed 100644 --- a/src/Api.php +++ b/src/Api.php @@ -10,7 +10,7 @@ class Api public static $secret = null; - const VERSION = '1.2.3'; + const VERSION = '1.2.4'; /** * @param string $api_key diff --git a/src/Entity.php b/src/Entity.php index 0176848e..410e2a3f 100644 --- a/src/Entity.php +++ b/src/Entity.php @@ -58,6 +58,8 @@ protected function request($method, $relativeUrl, $data = null) $response = $request->request($method, $relativeUrl, $data); + sd($response); + if ((isset($response['entity'])) and ($response['entity'] == $this->getEntity())) {