Skip to content

Commit a7b1b55

Browse files
committed
Merge pull request #7 from eileenmcnaughton/eileenmcnaughton-patch-1
Use notifyUrl not returnUrl for callback
2 parents 75a0ee8 + dc7545d commit a7b1b55

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Message/DirectPostAuthorizeRequest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public function getData()
2222
$data['EPS_TIMESTAMP'] = gmdate('YmdHis');
2323
$data['EPS_FINGERPRINT'] = $this->generateFingerprint($data);
2424
$data['EPS_RESULTURL'] = $this->getReturnUrl();
25-
$data['EPS_CALLBACKURL'] = $this->getReturnUrl();
25+
$data['EPS_CALLBACKURL'] = $this->getNotifyUrl() ?: $this->getReturnUrl();
2626
$data['EPS_REDIRECT'] = 'TRUE';
2727
$data['EPS_CURRENCY'] = $this->getCurrency();
2828

0 commit comments

Comments
 (0)