-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #36 from FLUX-SE/expire-session-instead-of-cancel-…
…payment-intent Expire session instead of cancel payment intent
- Loading branch information
Showing
10 changed files
with
315 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace FluxSE\SyliusPayumStripePlugin\Factory; | ||
|
||
use FluxSE\PayumStripe\Request\Api\Resource\AllInterface; | ||
use FluxSE\PayumStripe\Request\Api\Resource\AllSession; | ||
|
||
final class AllSessionRequestFactory implements AllSessionRequestFactoryInterface | ||
{ | ||
public function createNew(): AllInterface | ||
{ | ||
return new AllSession(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace FluxSE\SyliusPayumStripePlugin\Factory; | ||
|
||
use FluxSE\PayumStripe\Request\Api\Resource\AllInterface; | ||
|
||
interface AllSessionRequestFactoryInterface | ||
{ | ||
public function createNew(): AllInterface; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace FluxSE\SyliusPayumStripePlugin\Factory; | ||
|
||
use FluxSE\PayumStripe\Request\Api\Resource\CustomCallInterface; | ||
use FluxSE\PayumStripe\Request\Api\Resource\ExpireSession; | ||
|
||
final class ExpireSessionRequestFactory implements ExpireSessionRequestFactoryInterface | ||
{ | ||
public function createNew(string $id): CustomCallInterface | ||
{ | ||
return new ExpireSession($id); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace FluxSE\SyliusPayumStripePlugin\Factory; | ||
|
||
use FluxSE\PayumStripe\Request\Api\Resource\CustomCallInterface; | ||
|
||
interface ExpireSessionRequestFactoryInterface | ||
{ | ||
public function createNew(string $id): CustomCallInterface; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.