Payment page
The payment page shows the PayPal button, or the card button for the payment
method PAYPAL_. The customer pays in a window of PayPal without
leaving the shop.
- Create a page, e.g. "Payment", and hide it in the menu.
- Add the content element Cart: PayPal payment to the page.
- Select the page in the site setting "Payment page" or set the constant
plugin.to the uid of the page.tx_ cartpaypal. payment Pid
The page shows the order with its products, costs and addresses next to the
PayPal button. The template Payment/ and the partials
Payment/ and Payment/ can be overridden
like the templates of other Extbase plugins (plugin.).
The amounts are formatted with the currency format of Cart. The element with the attribute
data- and its data attributes are needed by the
JavaScript EXT:.
If PayPal can not be offered by the JavaScript SDK, e.g. for the currency, the page shows a link which redirects the customer to PayPal instead.
Important
With a Content Security Policy for the frontend, allow the PayPal JavaScript
SDK (https://, https://) for
scripts, frames and connections.