test setting callbackUrl in migration

This commit is contained in:
cnohall 2024-09-04 09:44:41 +09:00
parent bf9f8eb47e
commit c7d7e46582

View File

@ -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;