Add PayPal checkout provider
This commit is contained in:
23
app/Services/PayPal/Exceptions/PayPalException.php
Normal file
23
app/Services/PayPal/Exceptions/PayPalException.php
Normal file
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
|
||||
namespace App\Services\PayPal\Exceptions;
|
||||
|
||||
use RuntimeException;
|
||||
|
||||
class PayPalException extends RuntimeException
|
||||
{
|
||||
public function __construct(string $message, private readonly ?int $status = null, private readonly array $context = [])
|
||||
{
|
||||
parent::__construct($message, $status ?? 0);
|
||||
}
|
||||
|
||||
public function status(): ?int
|
||||
{
|
||||
return $this->status;
|
||||
}
|
||||
|
||||
public function context(): array
|
||||
{
|
||||
return $this->context;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user