File: D:/HostingSpaces/SBogers10/rentman2019.komma.pro/app/Komma/Shop/Payment/paymentRoutes.php
<?php
//PSP webhook url. The url which a PSP can use to update a transaction status.
Route::post('transaction/statusupdate/{order?}', \App\Komma\Shop\Payment\PSPResponseController::class.'@processPaymentProviderResponse')->name('transaction.statusupdate');
Route::get('transaction/statusupdate/{order?}', \App\Komma\Shop\Payment\PSPResponseController::class.'@processPaymentProviderResponse')->name('transaction.statusupdate');
//PSP REDIRECT URLS that DO NOT and MUST NOT update a transactions status. They must only inform a user about the status of a transaction and what is going to happen next. Returning a blade HTML view.
//For use with some psp's which only have one redirect url after a user payed at their environment
Route::get('transaction/result/general/{order?}', \App\Komma\Shop\Payment\PSPResponseController::class.'@showGeneralTransactionResult')->name('transaction.view.general');
//For use with psp's that have the ability to redirect a user after a payment was successful
Route::get('transaction/result/accepted/{order?}', \App\Komma\Shop\Payment\PSPResponseController::class.'@showAcceptedTransactionResult')->name('transaction.view.accepted');
//For use with psp's that have the ability to redirect a user after a payment was declined
Route::get('transaction/result/declined/{order?}', \App\Komma\Shop\Payment\PSPResponseController::class.'@showDeclinedTransactionResult')->name('transaction.view.declined');
//For use with psp's that have the ability to redirect a user after an error occured at the PSP and the transaction status is unknown (e.g. requires human intervention)
Route::get('transaction/result/exception/{order?}', \App\Komma\Shop\Payment\PSPResponseController::class.'@showExceptionTransactionResult')->name('transaction.view.exception');
//For use with psp's that have the ability to redirect a user after the customer canceled the transaction
Route::get('transaction/result/canceled/{order?}', \App\Komma\Shop\Payment\PSPResponseController::class.'@showCanceledTransactionResult')->name('transaction.view.canceled');