#Sibu John - Terminal

1 messages · Page 1 of 1 (latest)

vale smeltBOT
little spruce
#

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

wintry mantle
#

Hello Soma...

little spruce
#

Not familiar with JMeter. Can you clarify why do you want to test 50 instances simultaneously?

wintry mantle
#

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?

little spruce
#

Yes.

#

But why do you want to test 50 instances simultaneously?

wintry mantle
#

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

#

???

little spruce
wintry mantle
#

Okay.. The limit is not our issue now..

Can we talk about only one request now?

little spruce
#

Sure. What is your question?

wintry mantle
#

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)

little spruce
#

So in this case there isn't a real Terminal device available? So you would need to use a simulated reader.

wintry mantle
#

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

little spruce
#

I'm pretty sure you would need to use Stripe.js

wintry mantle
#

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..??

little spruce
#

No I don't thins its possible, since you need to use Stripe.js to connect to the (simulated) reader.

wintry mantle
#

Is it something like a valid token/connection should be established through terminal.js all the time?

#

Exactly...

wintry mantle
#

Is it something like we cannot mimic the terminal.js flow just by imitating the requests from a different platform like POSTMAN/JMeter???

#

??

upbeat prawn
#

Unfortunately not as far as I can tell

wintry mantle
#

Okay.. Thanks for your confirmation...
Appreciated your help @little spruce @upbeat prawn

I might connect if anything needed...
Thanks

upbeat prawn
wintry mantle
#

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..

upbeat prawn
#

Sibu John - Terminal