diff --git a/database/migrations/2024_08_27_230111_blockonomics_gateway.php b/database/migrations/2024_08_27_230111_blockonomics_gateway.php index 3ad54dea306d..caa226950624 100644 --- a/database/migrations/2024_08_27_230111_blockonomics_gateway.php +++ b/database/migrations/2024_08_27_230111_blockonomics_gateway.php @@ -15,9 +15,12 @@ return new class extends Migration if(!Gateway::find(64)) { + $BLOCKONOMICS_BASE_URL = 'https://www.blockonomics.co'; + $BLOCKONOMICS_GET_CALLBACKS_URL = $BLOCKONOMICS_BASE_URL . '/api/address?&no_balance=true&only_xpub=true&get_callback=true'; $fields = new \stdClass; $fields->apiKey = ""; - $fields->callbackUrl = ""; + // insert call to get callback url and set callback url based on response + $fields->callbackUrl = config('ninja.app_url'); $fields->callbackSecret = md5(uniqid(rand(), true)); $gateway = new Gateway;