#Giriraj
1 messages · Page 1 of 1 (latest)
see this
<PaymentRequestButtonElement
options={{
paymentRequest,
style: {
paymentRequestButton: {
type: 'default',
theme: 'dark',
height: '50px',
buttonSpacing: "10px"
},
}
}
}
/>
when i remove highlighted width then showing like this
Can you tell me what is happening vs what you epect?
button size is not proper
Can you be more specific?
i have used this element
I don't think butonSpacing is a valid property, I don't see it in doc
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
when i remove this default width then button is fine.
What do you mean by removing the default width? There's no width property in the first place.
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
https://developers.google.com/pay/api/web/guides/brand-guidelines you might want to follow the Goolge Pay brand guideline
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?
So you just want to offer Google Pay, not Apple Pay or Link?
this link i m following
https://stripe.com/docs/stripe-js/elements/payment-request-button
yes i want to offer only Google Pay