Skip to content

Commit

Permalink
Merge branch 'dev'
Browse files Browse the repository at this point in the history
  • Loading branch information
arif98741 committed Jun 7, 2023
2 parents d2cf35d + aadcd88 commit 130d407
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 14 deletions.
11 changes: 0 additions & 11 deletions src/Base.php
Original file line number Diff line number Diff line change
Expand Up @@ -175,17 +175,6 @@ public function getBaseUrl(): string
return $this->base_url;
}


/**
* Verify Payment
* @throws Exception
*/
public function verifyPayment($paymentRefId)
{
$url = $this->base_url . 'verify/payment/' . $paymentRefId;
return Helper::httpGet($url);
}

/**
* @throws NagadPaymentException
*/
Expand Down
5 changes: 2 additions & 3 deletions src/Helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ public function encryptDataWithPublicKey($data): string
return base64_encode($cryptoText);
}

throw new ExceptionHandler('Invalid Public key');
throw new ExceptionHandler('Invalid Public key. Check Public Key in Configuration');
}

/**
Expand All @@ -94,7 +94,7 @@ public function signatureGenerate($data): string
return base64_encode($signature);
}

throw new ExceptionHandler('Invalid private key');
throw new ExceptionHandler('Invalid private key. Check Private Key in Configuration');
}

/**
Expand Down Expand Up @@ -133,7 +133,6 @@ public function httpPostMethod(string $postUrl, array $postData)
$response = json_decode($resultData, true);
curl_close($url);
return $response;

}


Expand Down

0 comments on commit 130d407

Please sign in to comment.