Add no API key message

This commit is contained in:
cnohall 2025-03-18 11:31:03 +09:00
parent 93fe78abb2
commit b507e0924a
1 changed files with 3 additions and 0 deletions

View File

@ -150,6 +150,9 @@ class BlockonomicsPaymentDriver extends BaseDriver
{
try {
$api_key = $this->company_gateway->getConfigField('apiKey');
if(!$api_key) {
return 'No API Key';
}
$url = $this->NEW_ADDRESS_URL . '?reset=1';
$response = Http::withToken($api_key)
->post($url, []);