-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(PAR-427): Throw new
Canceled
exception when trying to capture …
…a payment intent that is already cancelled (#14) * feat(PAR-427): Throw new `Canceled` exception when trying to capture a payment intent that is already cancelled * chore(PAR-427): Formatting
- Loading branch information
1 parent
3d8cdb9
commit 39833ab
Showing
4 changed files
with
37 additions
and
11 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<?php | ||
|
||
namespace PodPoint\Payments\Providers\Stripe\Payment; | ||
|
||
class Canceled extends \Exception | ||
{ | ||
public function __construct() | ||
{ | ||
parent::__construct('Unable to create payment: The stripe PaymentIntent is already cancelled.'); | ||
} | ||
} |
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