mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-05-24 02:14:21 -04:00
test setting callbackUrl in migration
This commit is contained in:
parent
bf9f8eb47e
commit
c7d7e46582
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user