Compare commits
19 Commits
| Author | SHA1 | Date |
|---|---|---|
|
|
328d0d7482 | |
|
|
6de203775b | |
|
|
a3be6c6bab | |
|
|
0ea98ffe7d | |
|
|
d49b63d18d | |
|
|
047c3d0bdd | |
|
|
99d41a3794 | |
|
|
6765bfef3f | |
|
|
7e5cb8fe81 | |
|
|
b53818aa16 | |
|
|
69a9225957 | |
|
|
7b02668d4b | |
|
|
33c68b628d | |
|
|
9bec99b7d2 | |
|
|
d325e46ed7 | |
|
|
781e22fe96 | |
|
|
a148eec09b | |
|
|
5cdc036c74 | |
|
|
8247873fd3 |
|
|
@ -25,7 +25,7 @@ namespace App\Models;
|
|||
* @property bool $is_offsite
|
||||
* @property bool $is_secure
|
||||
* @property object|null|string $fields
|
||||
* @property string|int $default_gateway_type_id
|
||||
* @property string $default_gateway_type_id
|
||||
* @property int|null $created_at
|
||||
* @property int|null $updated_at
|
||||
* @property-read mixed $options
|
||||
|
|
|
|||
|
|
@ -1,45 +0,0 @@
|
|||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use App\Models\Gateway;
|
||||
use App\Models\GatewayType;
|
||||
use Illuminate\Support\Str;
|
||||
|
||||
return new class extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*/
|
||||
public function up(): void
|
||||
{
|
||||
if(!Gateway::find(65))
|
||||
{
|
||||
|
||||
$fields = new \stdClass;
|
||||
$fields->apiKey = "";
|
||||
$fields->callbackSecret = "";
|
||||
|
||||
$gateway = new Gateway;
|
||||
$gateway->id = 65;
|
||||
$gateway->name = 'Blockonomics';
|
||||
$gateway->key = 'wbhf02us6owgo7p4nfjd0ymssdshks4d';
|
||||
$gateway->provider = 'Blockonomics';
|
||||
$gateway->is_offsite = false;
|
||||
$gateway->fields = \json_encode($fields);
|
||||
|
||||
|
||||
$gateway->visible = true;
|
||||
$gateway->site_url = 'https://blockonomics.co';
|
||||
$gateway->default_gateway_type_id = GatewayType::CRYPTO;
|
||||
$gateway->save();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
//
|
||||
}
|
||||
};
|
||||
|
|
@ -108,7 +108,7 @@ class PaymentLibrariesSeeder extends Seeder
|
|||
|
||||
Gateway::query()->update(['visible' => 0]);
|
||||
|
||||
Gateway::whereIn('id', [1, 3, 7, 11, 15, 20, 39, 46, 55, 50, 57, 52, 58, 59, 60, 62, 63, 64, 65])->update(['visible' => 1]);
|
||||
Gateway::whereIn('id', [1, 3, 7, 11, 15, 20, 39, 46, 55, 50, 57, 52, 58, 59, 60, 62, 63])->update(['visible' => 1]);
|
||||
|
||||
if (Ninja::isHosted()) {
|
||||
Gateway::whereIn('id', [20, 49])->update(['visible' => 0]);
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
|
@ -385,7 +385,7 @@
|
|||
"src": "resources/js/setup/setup.js"
|
||||
},
|
||||
"resources/sass/app.scss": {
|
||||
"file": "assets/app-9454bf28.css",
|
||||
"file": "assets/app-039bd735.css",
|
||||
"isEntry": true,
|
||||
"src": "resources/sass/app.scss"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -104,7 +104,6 @@ use App\Http\Controllers\Reports\ClientReportController;
|
|||
use App\Http\Controllers\Reports\CreditReportController;
|
||||
use App\Http\Controllers\Reports\ReportExportController;
|
||||
use App\Http\Controllers\Reports\VendorReportController;
|
||||
use App\Http\Controllers\Gateways\BlockonomicsController;
|
||||
use App\Http\Controllers\Reports\ExpenseReportController;
|
||||
use App\Http\Controllers\Reports\InvoiceReportController;
|
||||
use App\Http\Controllers\Reports\PaymentReportController;
|
||||
|
|
@ -500,8 +499,6 @@ Route::post('api/v1/yodlee/balance', [YodleeController::class, 'balanceWebhook']
|
|||
|
||||
Route::get('api/v1/protected_download/{hash}', [ProtectedDownloadController::class, 'index'])->name('protected_download')->middleware('throttle:300,1');
|
||||
Route::post('api/v1/ppcp/webhook', [PayPalPPCPPaymentDriver::class, 'processWebhookRequest'])->middleware('throttle:1000,1');
|
||||
Route::get('api/v1/get-btc-price', [BlockonomicsController::class, 'getBTCPrice'])->middleware('throttle:1000,1');
|
||||
Route::get('api/v1/get-blockonomics-qr-code', [BlockonomicsController::class, 'getQRCode'])->middleware('throttle:1000,1');
|
||||
|
||||
Route::get('quickbooks/authorize/{token}', [ImportQuickbooksController::class, 'authorizeQuickbooks'])->name('quickbooks.authorize');
|
||||
Route::get('quickbooks/authorized', [ImportQuickbooksController::class, 'onAuthorized'])->name('quickbooks.authorized');
|
||||
|
|
|
|||
|
|
@ -5622,23 +5622,5 @@
|
|||
"GET",
|
||||
"HEAD"
|
||||
]
|
||||
},
|
||||
"generated::Xy7ZkLm8NpQ4Rt5V": {
|
||||
"name": "generated::Xy7ZkLm8NpQ4Rt5V",
|
||||
"domain": null,
|
||||
"action": "App\\Http\\Controllers\\BlockonomicsController@getBTCPrice",
|
||||
"uri": "api/v1/get-btc-price",
|
||||
"method": [
|
||||
"GET"
|
||||
]
|
||||
},
|
||||
"generated::Jk2MnOp3QrS6Tu9W": {
|
||||
"name": "generated::Jk2MnOp3QrS6Tu9W",
|
||||
"domain": null,
|
||||
"action": "App\\Http\\Controllers\\BlockonomicsController@getQRCode",
|
||||
"uri": "api/v1/get-blockonomics-qr-code",
|
||||
"method": [
|
||||
"GET"
|
||||
]
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue