Skip to content

Commit

Permalink
add: off session option for payment intents
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander (SASh) Alexiev committed Apr 25, 2020
1 parent 68b4903 commit 2e1355e
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions src/Message/PaymentIntents/AuthorizeRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,26 @@ public function getConfirm()
return $this->getParameter('confirm');
}

/**
* Set the confirm parameter.
*
* @param $value
*/
public function setOffSession($value)
{
$this->setParameter('offSession', $value);
}

/**
* Get the confirm parameter.
*
* @return mixed
*/
public function getOffSession()
{
return $this->getParameter('offSession');
}

/**
* @return mixed
*/
Expand Down Expand Up @@ -352,6 +372,8 @@ public function getData()
$this->validate('returnUrl');
$data['return_url'] = $this->getReturnUrl();
}
$data['off_session'] = $this->getOffSession() ? 'true' : 'false';


return $data;
}
Expand Down

0 comments on commit 2e1355e

Please sign in to comment.