Skip to content

Commit 17c280e

Browse files
committed
Custom action when notified from payzen (redirect to after_url)
1 parent df0b2f1 commit 17c280e

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

Action/CaptureAction.php

+2-5
Original file line numberDiff line numberDiff line change
@@ -54,11 +54,8 @@ public function execute($request)
5454

5555
// Notify url
5656
if (empty($model['vads_url_check']) && $this->tokenFactory) {
57-
$notifyToken = $this->tokenFactory->createNotifyToken(
58-
$request->getToken()->getGatewayName(),
59-
$request->getToken()->getDetails()
60-
);
61-
$model['vads_url_check'] = $notifyToken->getTargetUrl();
57+
// Custom action
58+
$model['vads_url_check'] = $request->getToken()->getAfterUrl();
6259
}
6360
}
6461

0 commit comments

Comments
 (0)