Open atsikov opened 2 weeks ago
I am experiencing this issue as well. Our design is pretty width-contrained, and I do not have 240px to give it unless I change the whole layout. I am unable to use the 'short' workaround.
@atsikov so sorry that it took so long for me to give you an answer 😉 As you mentioned this is the same issue as reported in #292
Potential workarounds for now:
buttonType: 'short'
(as you mentioned already)@Blackbaud-MitchellThomas please share your Google Pay merchant ID with me.
@dmengelt, I need to figure out if there is a single merchant id that applies to all of our consumers. Is this change to the "plain" button style the intention long-term, or is this being treated as a bug that will be fixed?
@dmengelt, I have determined that merchant id is not in use in our integration and instead uses a gateway from our payment provider desribed here:
https://developers.google.com/pay/api/web/guides/tutorial#tokenization
So, the merchantId deny list does not appear to be an option here.
@Blackbaud-MitchellThomas are you able to share a link to your integration with me?
@dmengelt, we're actively resolving a bug related to this larger width, so the live integration is more difficult to share. But you can see an equivalent version here: https://docs.stripe.com/elements/express-checkout-element#try-demo
@Blackbaud-MitchellThomas I see. So you are using a Stripe integration and they don't support the short
button type.
I need to check if there is another way for you to not get the dynamic data.
@dmengelt, correct, given that the short
type is deprecated, it is excluded from their SDK. Thanks for looking into it!
Describe the bug Button is rendered inconsistently when
buttonType: 'plain'
is used. Sometimes it still tries to include card information which results inmin-width: 240px
rule breaking narrow layouts.To Reproduce Steps to reproduce the behavior:
Parameters used to render the button (though it feels like
buttonSizeMode
andbuttonRadius
have no impact)Expected behavior Button respects passed parameters and doesn't try to render card info when
buttonType: 'plain'
is usedScreenshots Correctly rendered button
Incorrectly rendered button
Component information:
Reproducible with a plain SDK. Initially found it with
@google-pay/button-react
however I believe it is applicable to other component libraries@google-pay/button-react
)Environment:
Additional information As mentioned in https://github.com/google-pay/google-pay-button/issues/292#issuecomment-2135879938, passing a deprecated
buttonType: 'short'
works as expected