#ilyeselb
1 messages · Page 1 of 1 (latest)
Hi! Let me help you with this.
thanks
I am not sure it's possible. What's the issues you're running into?
Essentially, the Payment Element is designed in the way that you can't access the fields programmatically, this way the component is PCI-compliant: https://stripe.com/gb/guides/pci-compliance
i understand so even for test we cant do that
do we have a way to automate test of all the cards on a stripeComponent
?
👋 taking over for my colleague. Let me catch up.
what are you trying to achieve here?
the short answer is Stripe doesn't really support e2e testing
the tests you're trying to run with cypress are e2e and not really unit tests
hmm okay do you have somthing compatible ? ?
it depends on what are you trying to achieve?
like we do all the tests necessary for PaymentElement so you don't have to do them yourself
we have a stripe component on a nextJS app , we want to test all the cards automatically
we are not testing the paymentElement but our flow
you're still describing what you want to do (the approach) as opposed to what is the motivation behind it
with the paymentElement in it