#yoitspeterson-testing

1 messages ยท Page 1 of 1 (latest)

strange ermine
#

Hi there ๐Ÿ‘‹ can you elaborate a bit? Do you just need the structure of the payment intent?

long kettle
#

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

vocal obsidian
#

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

long kettle
#

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?

vocal obsidian
#

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

long kettle
#

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.

vocal obsidian
#

so stubing a payment intent would likely not work

long kettle
#

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.

vocal obsidian
#

could you elaborate on creating a test object

long kettle
#

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.

vocal obsidian
#

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

long kettle
#

hmm you'd probably want to check the error logs to see if something pops up

vocal obsidian
#

are you still available to troubleshoot this with me

tulip plover
#

Wow, this is an old thread that seemingly went by without being archived

#

What's the Q?

vocal obsidian
#

an old thread from 3 days ago lol

#

i was having an issue with stripe element integration with cypress but i got it, thanks!

tulip plover