I’m trying to integrate PayPal into my website using Stripe for payment processing. While I can accept credit card payments directly on my site, I’m encountering an issue with the PayPal integration. After setting up PayPal in the Stripe dashboard, when I attempt to process a payment, users are redirected to checkout.stripe.com to complete the transaction. This is not the user experience I want, as I aim for the entire payment process to happen on my website without any redirects.
I need assistance with ensuring that PayPal payments can be completed directly on my site instead of being sent to an external page.
I followed the Stripe documentation to set up PayPal as a payment option in my existing PHP payment system. I connected my Stripe account and configured PayPal in the Stripe dashboard. However, when I implement the payment code, it still redirects users to checkout.stripe.com to complete the payment.
What I Was Expecting:
I expected to integrate PayPal in such a way that users could complete their payments directly on my website, without being redirected to any external checkout page. My goal is to provide a seamless payment experience for my customers.