Compare commits

...

2 Commits

Author SHA1 Message Date
Kukks
b2d8071910 add remaining areas for redirect auto 2019-05-02 10:42:17 +02:00
Andrew Camilleri
bd9731a688
Add Redirect Automatically option 2019-05-01 14:52:31 +02:00
3 changed files with 28 additions and 2 deletions

View File

@ -164,6 +164,7 @@ class Client implements ClientInterface
'transactionSpeed' => $invoice->getTransactionSpeed(),
'fullNotifications' => $invoice->isFullNotifications(),
'extendedNotifications' => $invoice->isExtendedNotifications(),
'redirectAutomatically' => $invoice->isRedirectAutomatically(),
'notificationEmail' => $invoice->getNotificationEmail(),
'redirectURL' => $invoice->getRedirectUrl(),
'orderID' => $invoice->getOrderId(),

View File

@ -66,7 +66,10 @@ class Invoice implements InvoiceInterface
* @var boolean
*/
protected $extendedNotifications = false;
/**
* @var boolean
*/
protected $redirectAutomatically = false;
/**
* @var string
*/
@ -439,6 +442,21 @@ class Invoice implements InvoiceInterface
return $this;
}
/**
* @inheritdoc
*/
public function isRedirectAutomatically()
{
return $this->redirectAutomatically;
}
public function setRedirectAutomatically($redirectAutomatically)
{
$this->redirectAutomatically = (boolean) $redirectAutomatically;
return $this;
}
/**
* @inheritdoc

View File

@ -185,7 +185,14 @@ interface InvoiceInterface
* @return boolean
*/
public function isExtendedNotifications();
/**
* default value: false
* true: Redirect from the checkout UI to the set redirect url
* false: checkout UIwill not redirect but will display a button with a link to the set redirect url
*
* @return boolean
*/
public function isRedirectAutomatically();
/**
* The unique id of the invoice assigned by bitpay.com
*