#rob.clatyon-usbankpm-testing

1 messages · Page 1 of 1 (latest)

glad spruceBOT
#

Hello! We'll be with you shortly. Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.

dusk monolith
#

The second of those payment methods I created manually, the first is from the code I showed above.
Not sure why they are somewhat different.

dapper apex
#

Okay quick question. When you say "stripe admin portal" do you mean the Stripe dashboard?

dusk monolith
#

I do, sorry snufkin

dapper apex
#

Okay so that is going through a very different flow than the code you provided.

dusk monolith
#

So I'm using a test clock and running a test where I need to get the payment_intent.processing event ...
I'm doing it all through python server code ...
this flow speficially requires a client interaction (I think).
Can I implement the same process using only server code with no client interaction?

#

This is all for testing, I hasten to add

#

but full e2e testing to validate my understanding of the flow.

#

I can't just use unit or integration tests and expected webhook calls

dapper apex
#

In that case what I would do is what we recommend for automated testing https://docs.stripe.com/automated-testing

  • Go through the steps manually (with client interaction)
  • Copy the API responses from each step
  • Use those respones to create some mock API responses so you can do the entire flow programmatically
dusk monolith
#

ah, I see, okay, thanks

dapper apex
#

Happy to help 🙂