# Skip confirmation page in Express checkout
To place an order from the PayPal modal, skipping the confirmation page, use the useConfirmationPage
property of the PaymentPaypalExpressProvider
component:
<template>
<PaymentPaypalExpressProvider
:afterPay="afterPayAndOrder"
:afterRedirect="toggleCartSidebar"
:useConfirmationPage="false"
/>
</template>
Add afterPay
and afterRedirect
handlers. You should hide the sidebar inside both of them if it's shown. Use code from Usage on the frontend step to prepare callback functions.
WARNING
If there is a malformed price error, a component will redirect a user to the URL configured in the checkoutSummaryStepUrl
field. You should have a PaymentPaypalProvider
component that will handle the rest because our integration fallbacks to the classic PayPal flow described here.