Compare commits
2 Commits
master
...
Kukks-patc
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b2d8071910 | ||
|
|
bd9731a688 |
@ -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(),
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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
|
||||
*
|
||||
|
||||
Loading…
Reference in New Issue
Block a user