edit full payment refund request api endpoint

This commit is contained in:
ahmedsophyudden
2021-08-23 09:55:55 +08:00
parent 5ca508507a
commit f6425f82bc
2 changed files with 2 additions and 2 deletions
@@ -75,7 +75,7 @@ class CreateBookingRefundLogic extends AbstractControllerLogic
$booking = Booking::find($request->route('id'));
$transaction = $this->fetchesTransaction->execute(['id' => $request->input('payment_id')]);
$transaction = $this->fetchesTransaction->execute(['id' => $request->route('payment_id')]);
$paymentAttemptLimit = $this->fetchesCompanyPaymentAttemptLimit->execute($booking->company);
+1 -1
View File
@@ -17,7 +17,7 @@ Route::group(['prefix' => 'booking', 'as' => 'booking.', 'namespace' => 'Booking
});
Route::group(['prefix' => '{id}/refund', 'as' => 'refund.'], function () {
Route::post('create', 'CreateBookingRefundController@create')->name('create');
Route::post('{payment_id}/create', 'CreateBookingRefundController@create')->name('create');
});
Route::post('{id}/purchase_order/verification', 'ApprovePurchaseOrderController@approve')->name('po.approval');