Integration with Intuit - get accounting details for products

This commit is contained in:
Deon George
2023-05-10 12:59:42 +09:00
parent dde11f73f5
commit 17ebbb71e8
8 changed files with 147 additions and 17 deletions

View File

@@ -1,10 +1,10 @@
<?php
use App\Http\Controllers\{AdminController,
use App\Http\Controllers\{AccountingController,
AdminController,
CheckoutController,
ProductController,
ResellerServicesController,
WelcomeController};
ResellerServicesController};
/*
|--------------------------------------------------------------------------
@@ -34,7 +34,9 @@ Route::group(['middleware'=>['auth:api','role:reseller']], function() {
Route::group(['middleware'=>'auth:api'], function() {
Route::post('/u/checkout/fee/{o}',[CheckoutController::class,'fee'])
->where('o','[0-9]+');
Route::any('/intuit/accounting/list',[AccountingController::class,'list']);
});
Route::any('/intuit/webhook',[WelcomeController::class,'webhook'])
->where('o','[0-9]+');
// @todo Take the specific 'intuit' out of this url, to enable other accounting methods
Route::any('/intuit/webhook',[AccountingController::class,'webhook']);