I have this code set up for dynamically adding the script into the body of my react website. I'm using an npm package called react-paypal-buttons-v2
const script = document.createElement('script');
script.type = 'text/javascript';
script.src = `https://www.paypal.com/sdk/js?client-id=${clientId}¤cy=USD&enable-funding=credit,paylater,venmo,bancontact,blik,eps,giropay,ideal,mercadopago,mybank,p24,sepa,sofort`;
script.async = true;
script.onload = () => {
setSdkReady(true);
};
document.body.appendChild(script);
Code for rendering buttons -
import { PayPalButton } from 'react-paypal-button-v2'
<PayPalButton amount={order.totalPrice} onSuccess={sucessPaymentHandler} />
Everything is working fine except PayPal is only showing some of the payment methods (paypal credit, venmo and a few other buttons are not being shown)