stripe / react-stripe-js

React components for Stripe.js and Stripe Elements
https://stripe.com/docs/stripe-js/react
MIT License
1.74k stars 265 forks source link

PaymentRequestButtonElement triggers missing string field warning #222

Closed ecklf closed 2 years ago

ecklf commented 2 years ago

To reproduce add a PaymentRequestButtonElement to your component.

Displayed warning in Google Chrome:

Each dictionary in the list "icons" should contain a non-empty UTF8 string field "type".
christopher-stripe commented 2 years ago

Hi @ecklf, I tried this out in 94.0.4606.61 and was unable to see the warning. Do you have a runnable reproduction you can share by chance? e.g. a CodeSandbox or similar

ecklf commented 2 years ago

Hey there @christopher-stripe,

I just extended the Elements example from https://stripe.com/docs/stripe-js/react#customization-and-styling and updated the relevant dependencies to latest.

Reproduction link: https://codesandbox.io/s/react-stripe-js-card-detailed-forked-7y2fv?file=/src/App.js

This is what I see when I add PaymentRequestButtonElement to the JSX. (Please note that you need a payment method attached to Chrome in order for the component to be rendered)

image

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

vik8174 commented 7 months ago

I've faced with the warning as well I guess, this is @stripe/react-stripe-js package related issue When I disable the stripe functionality, the warnings disappear @stripe/react-stripe-js@2.4.0

Screenshot 2024-01-29 at 14 58 03