Skip to content

Commit bf786e1

Browse files
2.7.4: #86
1 parent 5d1171e commit bf786e1

File tree

3 files changed

+16
-4
lines changed

3 files changed

+16
-4
lines changed

Exception.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
<?php
22
namespace Dfe\Stripe;
3-
use Stripe\Error\Base;
3+
/**
4+
* 2020-01-22
5+
* «Class Stripe\Error\Base does not exist»: https://github.com/mage2pro/stripe/issues/86
6+
* https://github.com/stripe/stripe-php/blob/v5.3.0/lib/Error/Base.php
7+
* The \Stripe\Error\Base class has been deleted from `stripe/stripe-php` since 7.0.0.
8+
*/
9+
use Stripe\Exception\ApiErrorException as Base;
410
/**
511
* 2016-08-19
612
* @method Base prev()

Method.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,13 @@
77
use Dfe\Stripe\Facade\Token as fToken;
88
use Dfe\Stripe\Facade\Card;
99
use Magento\Sales\Model\Order\Payment\Transaction as T;
10-
use Stripe\Error\Base as lException;
10+
/**
11+
* 2020-01-22
12+
* «Class Stripe\Error\Base does not exist»: https://github.com/mage2pro/stripe/issues/86
13+
* https://github.com/stripe/stripe-php/blob/v5.3.0/lib/Error/Base.php
14+
* The \Stripe\Error\Base class has been deleted from `stripe/stripe-php` since 7.0.0.
15+
*/
16+
use Stripe\Exception\ApiErrorException as lException;
1117
/** @method Settings s() */
1218
final class Method extends \Df\StripeClone\Method {
1319
/**

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "mage2pro/stripe"
3-
,"version": "2.7.3"
3+
,"version": "2.7.4"
44
,"description": "Stripe integration with Magento 2"
55
,"type": "magento2-module"
66
,"homepage": "https://mage2.pro/c/stripe"
@@ -11,7 +11,7 @@
1111
"homepage": "https://mage2.pro/users/dmitry_fedyuk",
1212
"role": "Developer"
1313
}]
14-
,"require": {"mage2pro/core": ">=4.0.7", "mage2pro/phone": ">=1.0.11", "stripe/stripe-php": ">=5.3"}
14+
,"require": {"mage2pro/core": ">=4.0.7", "mage2pro/phone": ">=1.0.11", "stripe/stripe-php": ">=7.19.1"}
1515
,"autoload": {"files": ["registration.php"], "psr-4": {"Dfe\\Stripe\\": ""}}
1616
,"keywords": [
1717
"3D Secure"

0 commit comments

Comments
 (0)