I'm currently adding a Paypal button as a new payment method alongside credit card payments with Stripe. I'm using the module @paypal/paypal-js to render the paypal.Buttons as explained [in the documentation][1].
payPal.Buttons({
style: {
layout: 'horizontal',
color: 'gold',
tagline: false,
},
createOrder(_data, actions) {
// ...
},
})
It's working as expected. The only issue I'm having is the fact that it always opens Paypal in a popup window instead of redirecting the current browser tab. It's a strange user experience on desktop and I would rather redirect and come back to my website once the payment is confirmed (or cancelled).
Does anyone know if it is possible? I couldn't find the information in the documentation...