feat: voucher purchase flow
This commit is contained in:
1 parent
a628e96d06
commit
f3dd122678
70 files changed
+3672
-122
No files matched your search
@@ -0,0 +1,19 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\Exception;
|
||||
|
||||
use Symfony\Component\HttpKernel\Exception\HttpException;
|
||||
|
||||
/**
|
||||
* Thrown when a voucher purchase step is reached without a running purchase, either directly or
|
||||
* because the purchase was completed or the session expired.
|
||||
*/
|
||||
class VoucherSessionNotFoundException extends HttpException
|
||||
{
|
||||
public function __construct(?\Throwable $previous = null)
|
||||
{
|
||||
parent::__construct(404, 'No valid voucher purchase session found. Please start a new purchase.', $previous);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user