1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-09-19 16:01:34 +02:00
invoiceninja/app/Ninja/PaymentDrivers/PaymentActionRequiredException.php

33 lines
733 B
PHP
Raw Permalink Normal View History

2019-07-09 22:20:02 +02:00
<?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;
}
}