#Giriraj

1 messages · Page 1 of 1 (latest)

verbal pumiceBOT
junior dagger
#

see this

#

<PaymentRequestButtonElement
options={{
paymentRequest,
style: {
paymentRequestButton: {
type: 'default',
theme: 'dark',
height: '50px',
buttonSpacing: "10px"
},
}
}
}
/>

#

when i remove highlighted width then showing like this

fierce ore
#

Can you tell me what is happening vs what you epect?

junior dagger
fierce ore
#

Can you be more specific?

junior dagger
#

i have used this element

fierce ore
#

I don't think butonSpacing is a valid property, I don't see it in doc

junior dagger
#

ok let me remove

#

ok removed but how can i add width?

#

google pay button is not showing properly. so, i need to remove default width

junior dagger
fierce ore
#

What do you mean by removing the default width? There's no width property in the first place.

junior dagger
#

ok

#

ok got it now i need to add classname then it's work. from that class i have add width then it's working fine

#

now button is showing properly

fierce ore
junior dagger
#

ok thank you

#

PaymentRequestButtonElement provide three option

#

if i need to show only G Pay then?

#

i mean if i need to show only one option then?

fierce ore
#

So you just want to offer Google Pay, not Apple Pay or Link?

junior dagger
#

yes i want to offer only Google Pay

fierce ore
#

The PaymentRequest button will render into different Pay button based on the browser and wallet status, there's no option to show only one option.