FLUX-SE / PayumStripe

Payum Stripe gateways (with SCA support)
MIT License
28 stars 15 forks source link

Use StripeClient class #37

Closed Prometee closed 9 months ago

Prometee commented 9 months ago

stripe/stripe-php has evolved since v9, this PR aim to support newer version : v12.

This PR also add support for new options :

Those new options are supported to be able to control the StripeClient : https://github.com/stripe/stripe-php/blob/master/lib/BaseStripeClient.php#L19-L21

codecov[bot] commented 9 months ago

Codecov Report

Merging #37 (cf4e5c3) into master (be39460) will decrease coverage by 1.53%. The diff coverage is 88.26%.

:exclamation: Current head cf4e5c3 differs from pull request most recent head 7819bea. Consider uploading reports for the commit 7819bea to get more accurate results

@@             Coverage Diff              @@
##             master      #37      +/-   ##
============================================
- Coverage     99.85%   98.32%   -1.53%     
- Complexity      428      490      +62     
============================================
  Files           110      121      +11     
  Lines          1348     1491     +143     
============================================
+ Hits           1346     1466     +120     
- Misses            2       25      +23     
Files Changed Coverage Δ
src/Api/StripeClientAwareTrait.php 25.00% <25.00%> (ø)
src/Action/Api/Resource/AbstractDeleteAction.php 90.00% <66.66%> (-10.00%) :arrow_down:
src/Action/Api/Resource/AbstractAllAction.php 94.11% <75.00%> (-5.89%) :arrow_down:
src/Action/Api/Resource/AbstractCreateAction.php 94.11% <75.00%> (-5.89%) :arrow_down:
src/Action/Api/Resource/AbstractRetrieveAction.php 94.11% <75.00%> (-5.89%) :arrow_down:
src/Action/Api/Resource/AbstractUpdateAction.php 94.44% <75.00%> (-5.56%) :arrow_down:
src/AbstractStripeGatewayFactory.php 100.00% <100.00%> (ø)
src/Action/Api/Resource/AllCouponAction.php 100.00% <100.00%> (ø)
src/Action/Api/Resource/AllCustomerAction.php 100.00% <100.00%> (ø)
src/Action/Api/Resource/AllInvoiceAction.php 100.00% <100.00%> (ø)
... and 49 more

... and 1 file with indirect coverage changes

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more