PayPal Button
Learn how the PayPal button simplifies payments for your customers.
Your customers can make PayPal payments through a redirect or by using the PayPal button. Stripe determines whether to present the redirect or the button, but you can configure your pages to increase availability of the button. The PayPal button is available in the Express Checkout Element and Stripe Checkout.
This demo shows the PayPal button in the Express Checkout Element:
Before you start, we recommend you create a PayPal Sandbox account to test your integration.
The PayPal button works in Stripe’s Express Checkout Element only for one-off payments, not for recurring payments. To learn how to integrate PayPal with the Express Checkout Element, see the Express Checkout Element guide.
Recommended options
In certain scenarios, the Express Checkout Element doesn’t support the PayPal button, and presents PayPal only as a redirect. These scenarios include:
- Billing address collection is enabled
- Phone number collection is enabled
To maximise the chance of presenting the PayPal button, we recommend using the following options when handling the click event.
expressCheckoutElement.on('click', (event) => {
const options = {
phoneNumberRequired: false,
billingAddressRequired: false,
};
event.resolve(options);
});