#NormanLove-CSharp
1 messages · Page 1 of 1 (latest)
here is the registration form link. its in test mode so just enter anythign and a bad cc # and you will see the issue. it seems nothing happens, but there is an error at top of page
A Simple Income Tracker
I was under the impression, if BAD card number, the API logic would not allow form to submit
or button even to be clicked
seems also the form should MOVE to the error so it can be seen. And there's the issue that the forms button's onCLick was triggered and button is disabled 🙂
just not sure where to start and what is wrong
searching stripe docs for "form validation" surprisingly yields ...nada
Hello, sorry being late. Let me take a look
I see "Your card number is invalid." and it's expected, isn't it?
yes, i moved the div that shows the card error message lower below the button and so now its visable, at least, but not very visable. It should be red and maybe blinking. not sire how to make that happen.
that message comes from stripe php library
I tried applying css to the ID that is in the response div, but it does not change the styling
it appears that stripe elements are not designed to be styled from outside, has to be inside using variables, and seems like we can only change "theme" and have no full control. But I must be missing something cause this kinda error response is not very helpful if its using the default color of the body tag. which is what you are seeing....blue
this is the div that shows the message <div id="paymentResponse"></div>
Just want to clarify, is this the old Element, or the new PaymentElement?
old Element you can find reference here: https://stripe.dev/elements-examples/
Build beautiful, smart checkout flows.