From c644add49359c630696a0dc28c820d170d04b1e5 Mon Sep 17 00:00:00 2001 From: w3bn00b <32405548+w3bn00b@users.noreply.github.com> Date: Sat, 12 May 2018 22:35:48 +0900 Subject: [PATCH 1/2] Added compatibility for php version < 5.4 PHP under version 5.4 dont support short array definition like [num1, num2] and should be changed into array(num1, num2) --- lib/Paymentwall/Mobiamo.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/Paymentwall/Mobiamo.php b/lib/Paymentwall/Mobiamo.php index c3831eb..5a4d2f4 100644 --- a/lib/Paymentwall/Mobiamo.php +++ b/lib/Paymentwall/Mobiamo.php @@ -8,11 +8,11 @@ public function getEndpointName() } public function getToken($params){ - $defaultParams = [ + $defaultParams = array( 'key' => $this->getConfig()->getPublicKey(), 'ts' => time(), 'sign_version' => Paymentwall_Signature_Abstract::VERSION_TWO - ]; + ); $params = array_merge($defaultParams, $params); $params['sign'] = $this->calculateSignature($params); $this->doApiAction('token', 'post', $params); @@ -87,7 +87,7 @@ public function getApiUrl() } } - protected function doApiAction($action = '', $method = 'post', $params = []) + protected function doApiAction($action = '', $method = 'post', $params = array()) { $actionUrl = $this->getApiUrl() . '/' . $action; $httpAction = new Paymentwall_HttpAction($this, $params, [$this->getApiBaseHeader()]); From e9e43c71b1fa11e8466daa8b17659ce7ac20fc4b Mon Sep 17 00:00:00 2001 From: w3bn00b <32405548+w3bn00b@users.noreply.github.com> Date: Sat, 12 May 2018 22:36:49 +0900 Subject: [PATCH 2/2] Changed year as the year changes lol --- LICENSE | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LICENSE b/LICENSE index 633b3c7..ff6b0e2 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2010-2015 Paymentwall, Inc. +Copyright (c) 2010-2018 Paymentwall, Inc. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in