commerce_paypal.routing.yml in Commerce PayPal 8
File
commerce_paypal.routing.yml
View source
- commerce_paypal.checkout.create:
- path: '/commerce-paypal/checkout-create/{commerce_payment_gateway}/{commerce_order}'
- defaults:
- _controller: '\Drupal\commerce_paypal\Controller\CheckoutController::onCreate'
- requirements:
- _entity_access: 'commerce_order.update'
- options:
- parameters:
- commerce_payment_gateway:
- type: entity:commerce_payment_gateway
- commerce_order:
- type: entity:commerce_order
-
- commerce_paypal.checkout.approve:
- path: '/commerce-paypal/checkout-approve/{commerce_payment_gateway}/{commerce_order}'
- defaults:
- _controller: '\Drupal\commerce_paypal\Controller\CheckoutController::onApprove'
- requirements:
- _entity_access: 'commerce_order.update'
- _module_dependencies: commerce_checkout
- options:
- parameters:
- commerce_payment_gateway:
- type: entity:commerce_payment_gateway
- commerce_order:
- type: entity:commerce_order
-
- commerce_paypal.credit_messaging_settings:
- path: '/admin/commerce/config/payment/paypal-credit'
- defaults:
- _form: '\Drupal\commerce_paypal\Form\CreditMessagingForm'
- _title: 'Paypal Credit messaging'
- requirements:
- _permission: 'administer commerce payment gateway'