Skip to content

Commit 220d653

Browse files
committed
added redirectoToOriginUrl
1 parent 45fcfaf commit 220d653

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Client/PaymentRequestClient.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,7 @@ public function getPaymentRequestResult(
182182
public function initiatePayByBank(
183183
string $paymentRequestId,
184184
string $bankId,
185+
?string $redirectToOriginUrl,
185186
?PreciseNumber $amount
186187
): PaymentInitiationResponse {
187188
$url = $this->getApiUrl() . 'paymentrequests/' . urlencode($paymentRequestId) . '/pisp';
@@ -194,9 +195,8 @@ public function initiatePayByBank(
194195
}
195196
$body = http_build_query([
196197
'ProviderID' => $bankId,
197-
// not clear if these fields are optional or not.
198198
'PartialAmount' => $amount,
199-
'RedirectToOriginUrl' => null
199+
'RedirectToOriginUrl' => $redirectToOriginUrl
200200
]);
201201

202202
$response = $this->getHttpClient()->request($method, $url, $headers, $body);

0 commit comments

Comments
 (0)