#yoitspeterson-testing
1 messages ยท Page 1 of 1 (latest)
Hi there ๐ can you elaborate a bit? Do you just need the structure of the payment intent?
Hey there ๐
Stepping in for toby here
Have you had a chance to check out stripe-mock server? It should allow you to test your flow without persisting objects
https://github.com/stripe/stripe-mock
Hi thank you. So I have successful testing using the cypress browser api, but running it in github workflow, i am having errors mounting the stripe payment frame to the page since there is no payment intent
ah gotcha hmm this is definitely an interesting use-case
Typically these are handled by test-mode
also, when you say stripe payment frame you mean elements right?
yes, the whole iframe with card number/date/zip/cvc and the default check box option if the user has a default payment in their account
Right. AFAIK elements do require a valid PaymentIntent in order to be loaded. So yeah, you will need to use test mode in order to test your Github workflow.
so stubing a payment intent would likely not work
that's correct
you could try hard coding a clientSecret but not sure if that'd work. I'd rather recommend creating test objects in test mode.
could you elaborate on creating a test object
Oh sorry for the confusion. When you create an object with test keys, I referred to it as a test object. Just a lingo thing.
oh right, of course. yes so i was using the test key for api authorization to allow for stripe integration but on loading our cart/confirm page (where payments are processed) the test failed checking if the stripe object was mounted
hmm you'd probably want to check the error logs to see if something pops up
are you still available to troubleshoot this with me
Wow, this is an old thread that seemingly went by without being archived
What's the Q?
an old thread from 3 days ago lol
i was having an issue with stripe element integration with cypress but i got it, thanks!
We generally archive after ~1 hour of inactivity