Skip to content

Commit 2e1355e

Browse files
author
Alexander (SASh) Alexiev
committed
add: off session option for payment intents
1 parent 68b4903 commit 2e1355e

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

src/Message/PaymentIntents/AuthorizeRequest.php

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,26 @@ public function getConfirm()
126126
return $this->getParameter('confirm');
127127
}
128128

129+
/**
130+
* Set the confirm parameter.
131+
*
132+
* @param $value
133+
*/
134+
public function setOffSession($value)
135+
{
136+
$this->setParameter('offSession', $value);
137+
}
138+
139+
/**
140+
* Get the confirm parameter.
141+
*
142+
* @return mixed
143+
*/
144+
public function getOffSession()
145+
{
146+
return $this->getParameter('offSession');
147+
}
148+
129149
/**
130150
* @return mixed
131151
*/
@@ -352,6 +372,8 @@ public function getData()
352372
$this->validate('returnUrl');
353373
$data['return_url'] = $this->getReturnUrl();
354374
}
375+
$data['off_session'] = $this->getOffSession() ? 'true' : 'false';
376+
355377

356378
return $data;
357379
}

0 commit comments

Comments
 (0)