Add no API key message
This commit is contained in:
parent
93fe78abb2
commit
b507e0924a
|
|
@ -150,6 +150,9 @@ class BlockonomicsPaymentDriver extends BaseDriver
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
$api_key = $this->company_gateway->getConfigField('apiKey');
|
$api_key = $this->company_gateway->getConfigField('apiKey');
|
||||||
|
if(!$api_key) {
|
||||||
|
return 'No API Key';
|
||||||
|
}
|
||||||
$url = $this->NEW_ADDRESS_URL . '?reset=1';
|
$url = $this->NEW_ADDRESS_URL . '?reset=1';
|
||||||
$response = Http::withToken($api_key)
|
$response = Http::withToken($api_key)
|
||||||
->post($url, []);
|
->post($url, []);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue