You are here

commerce_paypal.routing.yml in Commerce PayPal 8

File

commerce_paypal.routing.yml
View source
  1. commerce_paypal.checkout.create:
  2. path: '/commerce-paypal/checkout-create/{commerce_payment_gateway}/{commerce_order}'
  3. defaults:
  4. _controller: '\Drupal\commerce_paypal\Controller\CheckoutController::onCreate'
  5. requirements:
  6. _entity_access: 'commerce_order.update'
  7. options:
  8. parameters:
  9. commerce_payment_gateway:
  10. type: entity:commerce_payment_gateway
  11. commerce_order:
  12. type: entity:commerce_order
  13. commerce_paypal.checkout.approve:
  14. path: '/commerce-paypal/checkout-approve/{commerce_payment_gateway}/{commerce_order}'
  15. defaults:
  16. _controller: '\Drupal\commerce_paypal\Controller\CheckoutController::onApprove'
  17. requirements:
  18. _entity_access: 'commerce_order.update'
  19. _module_dependencies: commerce_checkout
  20. options:
  21. parameters:
  22. commerce_payment_gateway:
  23. type: entity:commerce_payment_gateway
  24. commerce_order:
  25. type: entity:commerce_order
  26. commerce_paypal.credit_messaging_settings:
  27. path: '/admin/commerce/config/payment/paypal-credit'
  28. defaults:
  29. _form: '\Drupal\commerce_paypal\Form\CreditMessagingForm'
  30. _title: 'Paypal Credit messaging'
  31. requirements:
  32. _permission: 'administer commerce payment gateway'