#mochihealth
1 messages · Page 1 of 1 (latest)
Can you share more details? What do you see in the PaymentElement when you try the above?
?
Hello! I'm taking over and catching up...
No... it looks like that should be working...
Oh, wait.
You're supplying paymentMethodOptions when creating your Elements instance. You need to supply it when creating the Payment Element instance instead.
ahh let me try
that worked! thanks
is there any way I can access the state of the payment element to know which option is selected
I don't think so... we have change events you can listen to, but they don't expose that detail: https://stripe.com/docs/js/element/events/on_change?type=paymentElement
Why do you want to know which option is currently selected?
so I can dynamically update my front end to display some text
also when I try microdeposits in testing Im not getting any emails
That's expected, we don't send emails in test mode.