1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-09 20:52:56 +01:00
invoiceninja/app/Ninja/PaymentDrivers/PaymentActionRequiredException.php
2019-07-09 17:16:20 -04:00

33 lines
733 B
PHP

<?php
namespace App\Ninja\PaymentDrivers;
use Throwable;
/**
* Thrown when Stripe requires further user intervention to process a charge.
* Allows the calling code to handle the exception by requesting further interaction from the user.
*
* Class StripeActionRequiredException
* @package App\Ninja\PaymentDrivers
*/
class PaymentActionRequiredException extends \Exception
{
protected $data;
public function __construct(
$data,
$message = "Direct user approval required.",
$code = 0,
Throwable $previous = null
) {
$this->data = $data;
parent::__construct($message, $code, $previous);
}
public function getData()
{
return $this->data;
}
}