Skip to content

Commit

Permalink
Merge pull request #331 from razorpay/version_upgrade
Browse files Browse the repository at this point in the history
version upgrade
  • Loading branch information
ankitdas13 committed Oct 19, 2022
2 parents 4b63bcb + 4e1eee6 commit 31027cf
Show file tree
Hide file tree
Showing 82 changed files with 657 additions and 363 deletions.
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ before_script:
- cp phpunit.xml.dist phpunit.xml
# These two are required in the build step for non-composer-tests
- mkdir -p libs
- cd libs && wget https://github.com/rmccue/Requests/archive/v2.0.0.zip -O requests.zip && unzip requests.zip && rm requests.zip && cd ..
- rm -rf libs/Requests-2.0.0/examples libs/Requests-2.0.0/docs libs/Requests-2.0.0/bin libs/Requests-2.0.0/tests
- cd libs && wget https://github.com/rmccue/Requests/archive/v2.0.4.zip -O requests.zip && unzip requests.zip && rm requests.zip && cd ..
- rm -rf libs/Requests-2.0.4/examples libs/Requests-2.0.4/docs libs/Requests-2.0.4/bin libs/Requests-2.0.4/tests
script:
# Run a syntax validation check on all PHP files
- find . -path ./vendor -prune -o -iname '*.php' |xargs -n1 php -l
Expand Down
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ Changelog for Razorpay-PHP SDK. Follows [keepachangelog.com](https://keepachange

## Unreleased

## [2.8.5] - 2022-10-19

### Added
- Update [Request](https://github.com/WordPress/Requests/tree/v2.0.4) library to v2.0.4

## [2.8.4] - 2022-06-28

- New APIs for Third party validation (createUpi, validateVpa, fetchPaymentMethods)
Expand Down
6 changes: 3 additions & 3 deletions Deprecated.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,16 @@
* Allows for Composer to autoload the old PSR-0 classes via the custom autoloader.
* This prevents issues with _extending final classes_ (which was the previous solution).
*
* Please see the Changelog for the 2.0.0 release for upgrade notes.
* Please see the Changelog for the 2.0.4 release for upgrade notes.
*
* @package Requests
*
* @deprecated 2.0.0 Use the PSR-4 class names instead.
* @deprecated 2.0.4 Use the PSR-4 class names instead.
*/
define("REQUESTS_SILENCE_PSR0_DEPRECATIONS",true);

if (class_exists('WpOrg\Requests\Autoload') === false) {
require_once __DIR__. 'libs/Requests-2.0.0/src/Autoload.php';
require_once __DIR__. 'libs/Requests-2.0.4/src/Autoload.php';
}

WpOrg\Requests\Autoload::register();
2 changes: 1 addition & 1 deletion Razorpay.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

if (class_exists('WpOrg\Requests\Autoload') === false)
{
require_once __DIR__.'/libs/Requests-2.0.0/src/Autoload.php';
require_once __DIR__.'/libs/Requests-2.0.4/src/Autoload.php';
}

try
Expand Down
4 changes: 2 additions & 2 deletions documents/payment.md
Original file line number Diff line number Diff line change
Expand Up @@ -277,13 +277,13 @@ $api->payment->fetch($paymentId)->edit(array('notes'=> array('key_1'=> 'value1',
Request #1: Card

```php
$api->payment->all(array('expand[]'=>'card')
$api->payment->all(array('expand[]'=>'card'));
```

Request #2: EMI

```php
$api->payment->all(array('expand[]'=>'emi')
$api->payment->all(array('expand[]'=>'emi'));
```

**Response:**<br>
Expand Down
2 changes: 1 addition & 1 deletion documents/registeremandate.md
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ $api->order->create(array('amount' => '100', 'currency' => 'INR', 'payment_captu
## Create a recurring payment

```php
$api->payment->createRecurring(['email'=>'gaurav.kumar@example.com','contact'=>'9123456789','amount'=>1000,'currency'=>'INR','order_id'=>$orderid,'customer_id'=>$customerId,'token'=>$tokenId,'recurring'=>'1','description'=>'Creating recurring payment for Gaurav Kumar', 'notes'=> array('key1'=> 'value3','key2'=> 'value2')));
$api->payment->createRecurring(['email'=>'gaurav.kumar@example.com','contact'=>'9123456789','amount'=>1000,'currency'=>'INR','order_id'=>$orderid,'customer_id'=>$customerId,'token'=>$tokenId,'recurring'=>'1','description'=>'Creating recurring payment for Gaurav Kumar', 'notes'=> array('key1'=> 'value3','key2'=> 'value2'));
```
**Parameters:**

Expand Down
2 changes: 1 addition & 1 deletion documents/registernach.md
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ $api->order->create(array('amount' => '100', 'currency' => 'INR', 'payment_captu
## Create a recurring payment

```php
$api->payment->createRecurring(['email'=>'gaurav.kumar@example.com','contact'=>'9123456789','amount'=>1000,'currency'=>'INR','order_id'=>$orderid,'customer_id'=>$customerId,'token'=>$tokenId,'recurring'=>'1','description'=>'Creating recurring payment for Gaurav Kumar', 'notes'=> array('key1'=> 'value3','key2'=> 'value2')));
$api->payment->createRecurring(['email'=>'gaurav.kumar@example.com','contact'=>'9123456789','amount'=>1000,'currency'=>'INR','order_id'=>$orderid,'customer_id'=>$customerId,'token'=>$tokenId,'recurring'=>'1','description'=>'Creating recurring payment for Gaurav Kumar', 'notes'=> array('key1'=> 'value3','key2'=> 'value2'));
```
**Parameters:**

Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,6 +1,60 @@
Changelog
=========

2.0.4
-----

### Overview of changes
- Update bundled certificates as of 2022-07-19. [#763]

[#763]: https://github.com/WordPress/Requests/pull/763

2.0.3
-----

### Overview of changes
- Update bundled certificates as of 2022-04-26. [#731]

[#731]: https://github.com/WordPress/Requests/pull/731

2.0.2
-----

### Overview of changes
- Update bundled certificates as of 2022-03-18. [#697]

[#697]: https://github.com/WordPress/Requests/pull/697

2.0.1
-----

### Overview of changes
- Update bundled certificates as of 2022-02-01. [#670]
- Bug fix: Hook priority should be respected. [#452], [#647]
- Docs: the Hook documentation has been updated to reflect the current available hooks. [#646]
- General housekeeping. [#635], [#649], [#650], [#653], [#655], [#658], [#660], [#661], [#662], [#669], [#671], [#672], [#674]

Props [@alpipego][gh-alpipego], [@costdev][gh-costdev], [@jegrandet][gh-jegrandet] [@jrfnl][gh-jrfnl], [@schlessera][gh-schlessera]

[#674]: https://github.com/WordPress/Requests/pull/674
[#672]: https://github.com/WordPress/Requests/pull/672
[#671]: https://github.com/WordPress/Requests/pull/671
[#670]: https://github.com/WordPress/Requests/pull/670
[#669]: https://github.com/WordPress/Requests/pull/669
[#662]: https://github.com/WordPress/Requests/pull/662
[#661]: https://github.com/WordPress/Requests/pull/661
[#660]: https://github.com/WordPress/Requests/pull/660
[#658]: https://github.com/WordPress/Requests/pull/658
[#655]: https://github.com/WordPress/Requests/pull/655
[#653]: https://github.com/WordPress/Requests/pull/653
[#650]: https://github.com/WordPress/Requests/pull/650
[#649]: https://github.com/WordPress/Requests/pull/649
[#647]: https://github.com/WordPress/Requests/pull/647
[#646]: https://github.com/WordPress/Requests/pull/646
[#635]: https://github.com/WordPress/Requests/issues/635
[#452]: https://github.com/WordPress/Requests/issues/452


2.0.0
-----

Expand Down Expand Up @@ -896,6 +950,7 @@ Initial release!

[gh-aaronjorbin]: https://github.com/aaronjorbin
[gh-adri]: https://github.com/adri
[gh-alpipego]: https://github.com/alpipego/
[gh-amandato]: https://github.com/amandato
[gh-beutnagel]: https://github.com/beutnagel
[gh-carlalexander]: https://github.com/carlalexander
Expand All @@ -909,6 +964,7 @@ Initial release!
[gh-gstrauss]: https://github.com/gstrauss
[gh-ifwe]: https://github.com/ifwe
[gh-imsaintx]: https://github.com/imsaintx
[gh-jegrandet]: https://github.com/jegrandet
[gh-JustinyAhin]: https://github.com/JustinyAhin
[gh-jrfnl]: https://github.com/jrfnl
[gh-KasperFranz]: https://github.com/KasperFranz
Expand Down
File renamed without changes.
File renamed without changes.

0 comments on commit 31027cf

Please sign in to comment.