Skip to content

Commit d047c22

Browse files
authored
Merge pull request #162 from paynl/feature/PLUG-4533
PLUG-4533 - Move optional parameter
2 parents fa0658a + e984d14 commit d047c22

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

includes/classes/PPMFWC/Helper/Transaction.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -395,9 +395,9 @@ public static function getTguStatus($transactionId)
395395
{
396396
try {
397397
$response = self::sendRequest('https://connect.pay.nl/v1/orders/' . $transactionId . '/status',
398-
null,
399398
get_option('paynl_tokencode'),
400399
get_option('paynl_apitoken'),
400+
null,
401401
'GET');
402402

403403
return new PPMFWC_Model_PayOrder($response);
@@ -418,7 +418,7 @@ public static function getTguStatus($transactionId)
418418
* @return array
419419
* @throws Exception
420420
*/
421-
public static function sendRequest($requestUrl, $payload = null, $tokenCode, $apiToken, string $method = 'POST')
421+
public static function sendRequest($requestUrl, $tokenCode, $apiToken, $payload = null, string $method = 'POST')
422422
{
423423
$authorization = base64_encode($tokenCode . ':' . $apiToken);
424424

0 commit comments

Comments
 (0)