20 lines
561 B
PHP
20 lines
561 B
PHP
<?php
|
|||
|
|
|
||
|
|
namespace Modules\Core\Checkout\Exceptions;
|
||
|
|
|
||
|
|
use RuntimeException;
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Thrown by CheckoutService::initiatePayment() when $termsAccepted is
|
||
|
|
* false — an Order is a consumer contract, and its acceptance must be
|
||
|
|
* refused rather than created-then-flagged. No Lunar exception type
|
||
|
|
* covers this, same reasoning as UnknownPaymentTypeException.
|
||
|
|
*/
|
||
|
|
class TermsNotAcceptedException extends RuntimeException
|
||
|
|
{
|
||
|
|
public function __construct()
|
||
|
|
{
|
||
|
|
parent::__construct('The order cannot be placed until the terms have been accepted.');
|
||
|
|
}
|
||
|
|
}
|