Skip to content

Commit

Permalink
Merge branch 'dev'
Browse files Browse the repository at this point in the history
  • Loading branch information
arif98741 committed Nov 11, 2020
2 parents 5c06187 + f8b437e commit 6b6691a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
9 changes: 3 additions & 6 deletions src/RequestHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,9 @@ public function __construct(Base $base)
*/
public function fire()
{

$postUrl = $this->base->getBaseUrl() . $this->apiUrl;

$this->base->getMerchantID() .
"/" . $this->base->getInvoice();
$postUrl = $this->base->getBaseUrl() . $this->apiUrl
. $this->base->getMerchantID() .
"/" . $this->base->getInvoice();

$sensitiveData = array(
'merchantId' => $this->base->keyObject->getAppMerchantID(),
Expand All @@ -79,7 +77,6 @@ public function fire()
'signature' => $this->helper->SignatureGenerate(json_encode($sensitiveData))
);


$resultData = $this->helper->HttpPostMethod($postUrl, $postData);

if ($resultData === NULL) {
Expand Down
4 changes: 2 additions & 2 deletions src/lib/Key.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@

use Dotenv\Dotenv;

define('NAGAD_ABSPATH', __DIR__ . '/../../../../../');
$dotenv = Dotenv::create(NAGAD_ABSPATH);
define('NAGAD_ABSPATH', __DIR__ . '/../../');
$dotenv = Dotenv::createImmutable(NAGAD_ABSPATH);
$dotenv->load();


Expand Down

0 comments on commit 6b6691a

Please sign in to comment.