mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange-2.0.git
synced 2026-08-29 01:13:59 +00:00
edit full payment refund request api endpoint
This commit is contained in:
@@ -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
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user