How to change background Paypal buttons on Nextjs13?

49 Views Asked by At

I can't change the background paypal's buttons. Anyone else has the same problem ? I tried to add an external div and set a background, but it doesn't change. Is it a nextjs13 issue ? it's possible ?

I can show you the problem :

enter image description here

This is my code:

   <div className="z-20 relative bg-neutral-900">
      <PayPalScriptProvider
        options={{
          'client-id': ************,
          components: 'buttons',
          intent: 'subscription',
          vault: true,
        }}
      >
        <PaypalButton...../>
           

      </PayPalScriptProvider>
    </div>

Anyone can help me ?

1

There are 1 best solutions below

1
Douglas Cunha On

You can follow this link to set the background of the container.

For the buttons, PayPal provides a couple of color customizations, like Gold, Blue, Silver, White, and Black.