payment.php 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. <?php
  2. // Copyright 2019 Hackware SpA <human@hackware.cl>
  3. // This file is part of "Hackware Web Services Payment" and licensed under
  4. // the terms of the GNU Affero General Public License version 3, or (at your
  5. // option) a later version. You should have received a copy of this license
  6. // along with the software. If not, see <https://www.gnu.org/licenses/>.
  7. app('router')->group(
  8. ['namespace' => 'Hawese\Payment\Http\Controllers'],
  9. function ($router) {
  10. $router->get('gateways', [
  11. 'as' => 'gateways.index',
  12. 'uses' => 'GatewayController@index',
  13. ]);
  14. $router->get('gateways/payment-methods/{schema}', [
  15. 'as' => 'gateways.payment-methods',
  16. 'uses' => 'GatewayController@PaymentMethods',
  17. ]);
  18. $router->get('gateways/{gateway}/schemas/{schema}', [
  19. 'as' => 'gateways.schema',
  20. 'uses' => 'GatewayController@schema',
  21. ]);
  22. $router->post('gateways/{gateway}/purchase', [
  23. 'as' => 'gateways.purchase',
  24. 'uses' => 'GatewayController@purchase',
  25. ]);
  26. $router->post('gateways/{gateway}/notify', [
  27. 'as' => 'gateways.notify',
  28. 'uses' => 'GatewayController@notify',
  29. ]);
  30. $router->get('payments/{uuid}', [
  31. 'as' => 'payments.show',
  32. 'uses' => 'PaymentController@show',
  33. ]);
  34. }
  35. );