#xlex-terminal

1 messages · Page 1 of 1 (latest)

supple pebble
#

what doc are you following?

copper epoch
#

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

supple pebble
#

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

copper epoch
#

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?

supple pebble
#

AFAIK there is not no, checking one thing

copper epoch
#

Thank you 🙂

supple pebble
#

outside of that, you can mock the responses of confirming PaymentIntents and then handle them in your tests

copper epoch
#

That is pretty different. I'll try just mocking for now. Thanks for checking.