#xlex-terminal
1 messages · Page 1 of 1 (latest)
I got those card names from https://stripe.com/docs/terminal/references/testing
But kind of joined up with how I test payment intents in the rest of our app, where I could use pm_card_visa for example
My goal is just to write integration tests for what I will receive from our mobile app, without needing to actually run the mobile app
yeah so those hard coded PaymentMethods are built into the simulated readers on mobile apps. You can't just confirm a card_present PaymentIntent on your server to simulate this
Fair enough. Is there a way to generate a confirmed payment intent that acts like it came from Terminal in my server-side test suite and then process it?
AFAIK there is not no, checking one thing
Thank you 🙂
so there's a "server driven" integration with Terminal, that means you don't need to use the mobile SDKs
that one supports a simulated reader (from the server) and all the requests to the reader are also made from the server
though that is a significantly different integration and it looks like yours is complete really: https://stripe.com/docs/terminal/payments/collect-payment?terminal-sdk-platform=server-driven
outside of that, you can mock the responses of confirming PaymentIntents and then handle them in your tests
That is pretty different. I'll try just mocking for now. Thanks for checking.