#mashrurfahim
1 messages ยท Page 1 of 1 (latest)
Happy to help, can you tell me more about the issues that you are running in to?
I'm using Laravel Breeze with vue3 and inertia. Now using stripe-php in the backend and stripe terminal js npm package in the frontend.
what is the best place to import loadTerminal method
as if I import it in a component i.e. let's call it TerminalReader.vue component. then isn't is load everytime when the component render on DOM?
I don't know much about vue but will ask my colleagues about this and get back to you
Ok. let me know about that. I've another question, if I successfully implement the quick start example then how it is behave with real device or live mode?
Should I change anything in code or it'll work with the real device
The flow should work the same between live and test mode, Stripe-wise you should only need to change your API keys from the test mode keys to the live mode keys
And unfortunately we don't have Vue-specific advice for loading our terminal SDK in Vue. There is an open source community library, it does not look like it impliments our Terminal SDK but you may be able to use as reference here https://www.npmjs.com/package/@vue-stripe/vue-stripe
when I call the discoverReader method it only return me the simulated one. if I give the simulated value false on config then it return empty
why it's happening. I created simulated reader on stripe terminal dashboard
๐ stepping in as Pompey needs to step away
Can you clarify what is unexpected here?
If you don't have an actual reader and you set simulated: false then it is expected that it would be empty
I created two simulated reader on stripe terminal dashboard. I want those reader to be fetch.
but it only give me the hardcoded one
How did you create simulated readers on the Dashboard exactly? You don't do anything other than set simulated: true for simulated readers.
I created those readers on stripe terminal reader dashboard
How do I get those reader from discoverReader method?
I'm on the test mode
Also, the vue stripe doesn't have terminal support.
๐ hi again
Hi Hanzo
I'm assuming you created the simulated readers using the API as shown here?
https://stripe.com/docs/terminal/payments/connect-reader?terminal-sdk-platform=server-driven&reader-type=simulated#create-a-simulated-reader
Not really. I created those from stripe Dashboard.
I don't believe we allow creating simulated readers using the dashboard, unless it is a private feature/beta
As you know I'm currently tinkering so checking every approach.
ah hang on
did you just use simulated_wpe as the registration code via the dashboard?
yes
Gotcha. I see.
Stripe Terminal SDKs come with simulated readers built in. Meaning each integration path (server-driven, JS, iOS etc) would have their own way to configure simulated readers.
When you use the dashboard with simulated-wpe registration code OR call the API directly to create a simulated reader, it creates it for server-driven flow since the flow relies on API calls.
With other SDKs, the SDKs themselves have the capability to act as simulated readers.
So, the simulated readers you've created would only show up if you were to query them using the API here
https://stripe.com/docs/terminal/payments/connect-reader?terminal-sdk-platform=server-driven&reader-type=simulated#query-your-simulated-reader
Is server driven api available in UK
If I use server driven SDK then how do I able to see the response result?
You can request it by emailing the address listed on the doc
If I use server driven SDK then how do I able to see the response result?
What response? Not sure I grasp the question
I mean when I call the API from my backend, will that give me the response or give me the empty result as my stripe account is from the UK
Without the beta access, you'd currently see an API error.
Once you are granted the access to the beta, you should be able to see the response object as shown in the docs I shared above
Okay. Thanks for your information.