#Sibu John - Terminal
1 messages · Page 1 of 1 (latest)
Hi there!
Pasting your other messages below:
The situation now around us is to test the performance of this system at least 50 instances simultaneously..
How would I test this using a testing framework like JMeter
Any help is appreciated
Hello Soma...
Not familiar with JMeter. Can you clarify why do you want to test 50 instances simultaneously?
Okay.. good...
I'm the one who developed the application (or just integrated the stripe terminal.js)
The application tester (another person) is given with a task to do the performance testing of the endpoints (not stripe endpoints, but the create and capture payment intent methods of our backends)..
got it?
Cool...
So, the create payment intent endpoints is triggered from 50 different threads to validate the performance of our backend..
And we received 50 different clientSecrets.. Success...!!!!
The ultimate aim is to complete the payment flow of all these 50 different threads..
The assumption is 50 different in-person-payments are happening simultaneously hence 50 requests comes to the our backend simultaneusly..
got it?
If so, we can narrow down the case to 1 instance now
???
Note that Stripe has rates limit in test mode: only 25 writes per seconds. So I don't think it's possible to do what you are looking for. https://stripe.com/docs/rate-limits
Maybe you can try using stripe-mock? https://github.com/stripe/stripe-mock
Okay.. The limit is not our issue now..
Can we talk about only one request now?
Sure. What is your question?
Okay...
I have received the client Secret from create Intent endpoint of our backend
This secret is given to the collect payment method of the terminal.js
The response is given to the process payment method of terminal.js again
Then finally the capture payment method of our backend called and it all went well... Success!!!
My tester is trying to replicate the entire flow of one successful payment without going through the UI interaction, without the terminal.js library and so on
He is focusing only on triggering the endpoints one by one
First he called the create payment of our backend
He received a client secret
He is stuck now..
Don't know where to provide this secret to collect a payment (through stripe)
So in this case there isn't a real Terminal device available? So you would need to use a simulated reader.
Yes...
No physical device available...
The testing version itself is a simulated reader mode...
The question is simple...
If we have a clientSecret, is there any endpoints which can be triggered through for example postman to collect the payment followed by a process payment
I just want to have my paymentIntentId which has gone through the collect and process payment phases..
NB: this is not a developer/ use case scenario..
But for testing purpose
I'm pretty sure you would need to use Stripe.js
That's the point...
FYI..
I'm using the configuration as
stripeConfig: {
simulated: true
},
You may easily understand if I ask for another example...
Is it possible to complete (create, collect, process and capture stages of) a payment flow through POSTMAN?
If I have all the endpoints (our backend and stripe endpoints)..?. I will be using each responses to next requests..??
No I don't thins its possible, since you need to use Stripe.js to connect to the (simulated) reader.
Is it something like a valid token/connection should be established through terminal.js all the time?
Exactly...
??
Is it something like we cannot mimic the terminal.js flow just by imitating the requests from a different platform like POSTMAN/JMeter???
??
Unfortunately not as far as I can tell
Okay.. Thanks for your confirmation...
Appreciated your help @little spruce @upbeat prawn
I might connect if anything needed...
Thanks
@wintry mantle Actually now that I think of it, you may be able to do something like our server driven flow with a simulated reader, though that might not be a good simulation of what you want to do with a real reader. https://stripe.com/docs/terminal/payments/collect-payment?reader=simulated
Yeah... That is the possible way for this kind of testing as I know...
Since relying on a third party library in the work flow, I'm afraid its possible..
Sibu John - Terminal