From c7d7e465821a42336b462c942e625897af4af6ae Mon Sep 17 00:00:00 2001 From: cnohall Date: Wed, 4 Sep 2024 09:44:41 +0900 Subject: [PATCH] test setting callbackUrl in migration --- .../migrations/2024_08_27_230111_blockonomics_gateway.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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;