Skip to content

Commit f52c5ca

Browse files
committed
refactor: params are received directly
1 parent ef3cf69 commit f52c5ca

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

plugin/src/WebpayplusTransbankSdk.php

+1-2
Original file line numberDiff line numberDiff line change
@@ -438,9 +438,8 @@ private function detectFlow(array $params): string
438438
return self::WEBPAY_ERROR_FLOW;
439439
}
440440

441-
public function handleRequestFromTbkReturn(array $requestData)
441+
public function handleRequestFromTbkReturn(array $params)
442442
{
443-
$params = $requestData['params'] ?? null;
444443
$tokenWs = $params['token_ws'] ?? null;
445444
$tbkToken = $params['TBK_TOKEN'] ?? null;
446445
$sessionId = $params['TBK_ID_SESION'] ?? null;

0 commit comments

Comments
 (0)