react-square-payment-form icon indicating copy to clipboard operation
react-square-payment-form copied to clipboard

Handle conditional rendering of the payment form

Open stephtaylor opened this issue 5 years ago • 0 comments

Use case: want to conditionally render credit card inputs, but always display the "submit" button.

ElementNotVisibleError: SqPaymentForm element with id 'sq-payment-form-sq-card-number' is not visible. Does it or a parent element have 'display:none'?

Originally posted by @siakaramalegos in https://github.com/square/react-square-payment-form/issues/41#issuecomment-579328536

stephtaylor avatar Feb 03 '20 18:02 stephtaylor