remove manual call of processWebhookRequest, instead rely on existing infrastructure

This commit is contained in:
cnohall 2024-09-15 19:40:26 +09:00
parent 2687483cd8
commit 749b58500e
3 changed files with 1 additions and 11 deletions

View File

@ -25,7 +25,7 @@ class PaymentLibrariesSeeder extends Seeder
Model::unguard();
$callbackSecret = md5(uniqid(rand(), true));
$callbackUrl = config('ninja.app_url') . '/api/v1/blockonomics/callback/?secret=' . $callbackSecret;
$callbackUrl = config('ninja.app_url') . '/payment_webhook/?secret=' . $callbackSecret;
$blockonomics_fields = "{
\"apiKey\": \"\",
\"callbackUrl\": \"$callbackUrl\",

View File

@ -460,7 +460,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/blockonomics/callback', [BlockonomicsPaymentDriver::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');

View File

@ -5623,15 +5623,6 @@
"HEAD"
]
},
"generated::aB3xYz9KlmN7Pq8R": {
"name": "generated::aB3xYz9KlmN7Pq8R",
"domain": null,
"action": "App\\Http\\Controllers\\BlockonomicsPaymentDriver@processWebhookRequest",
"uri": "api/v1/blockonomics/callback",
"method": [
"GET"
]
},
"generated::Xy7ZkLm8NpQ4Rt5V": {
"name": "generated::Xy7ZkLm8NpQ4Rt5V",
"domain": null,