#bomsn
1 messages · Page 1 of 1 (latest)
Could you please direct me on how to get this working from outsite the local network?
The guide you are following assumes that your reader and your application need to work on the same local network.
Not sure I'm getting what you are trying to achieve at the end, but probably you need to follow this guide instead and see how to connect to the reader over internet using Stripe API instead of Terminal SDK
https://stripe.com/docs/terminal/payments/connect-reader?reader-type=internet
I'm creating a WordPress integration, the end goal is to be able to connect to the reader from the website ( create payment intent..etc ), then the customer can pay via the reader from the location. The website is hosted outside the network, so I need to be able to connect from outside the network.
When I checked, the same code sample above is used by an existing integration https://stripe.com/partners/directory/stripe-terminal-for-woocommerce and it seems to be working for them without any issues. So I'm not sure if the guide provided is restricted to local network.
Note that I'm following the server-driven approach and all other processes are working fine, except when I reach the connect part
Actually, the same code I'm using is outline here in the link you shared ( internet integration => JS ): https://stripe.com/docs/terminal/payments/connect-reader?terminal-sdk-platform=js&reader-type=internet
So it should normally work/connect
Ok so the error you are sharing is when you do the call stripe.terminal.readers.create?
if so, can you share the ID (req_xxx) of the failing API request?
https://support.stripe.com/questions/finding-the-id-for-an-api-request
No the error happens when I use terminal.connectReader(selectedReader) . This one doesn't seem to produce any errors in Stripe Dashboard.
Do you have a reader ID (tmr_xxx) ?
Yes tmr_E0aaPAZeRkfIPi
Thanks for sharing
Could you please test collecting Payment using the server driven approach, just to test if the reader is reachable via internet
https://stripe.com/docs/terminal/payments/collect-payment?terminal-sdk-platform=server-driven#process-payment
Looking at your dashboard the reader is offline, could you please check if it's well connected to internet ?
https://stripe.com/docs/terminal/readers/bbpos-wisepos-e#checking-connectivity
Yes, it's offline now, will connect shortly. The error that I'm getting happens when it's online. I'll get back once the reader is connected.
Hey @vital robin, the reader is now connected/online
Yes now it's online in fact
Could you please try this ?
Yes, working on it, thanks
Hey @vital robin, the first error I run into when trying $stripe->terminal->readers->processPaymentIntent is
Stripe\Exception\InvalidRequestException: The server-driven integration is currently only available in certain countries. For more information, see https://stripe.com/docs/terminal/choosing-reader-and-integration#availability.
Note that the reader is in the UK, so should not see such error.
req_lV3YJlnfkmpjlh
Ah yes, you need to be in US, otherwise you need to be registred in beta via stripe-terminal-betas@stripe.com
Now back to your issue, could you please provide a sample project that we can try to reproduce the issue ?
Weird, it says it's supported in the UK. Does that mean I cannot initiate payments from the website if I'm in the UK? if that's the case, there is no point of the integration, this doesn't make sense especially since the existing integration here https://stripe.com/partners/directory/stripe-terminal-for-woocommerce does support the UK. Note that it uses the same server-driven approach outlined earlier.
For the sample project, you could use this link: https://wpmegaforms.com/stripe-terminal/
When you click "Discover readers" it will bring the reader, but when you click connect, it produces an error in the console.
Hi there. Taking over for os4m37 as they have to step out. The server-driven integration, specifically is what's available only in the US. See: https://support.stripe.com/questions/terminal-server-driven-integration
Find help and support for Stripe. Our support center provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.
See in the docs here: https://stripe.com/docs/terminal/payments/setup-integration?terminal-sdk-platform=server-driven
There is an email you can reach out to to request access for other countries:
The server-driven integration is generally available in the United States. To request access to the server-driven integration in countries other than the US, please email stripe-terminal-betas@stripe.com.
Makes sense re server-driven integration. However, I assume this one should work https://stripe.com/docs/terminal/quickstart correct?
Selection is:
- Country: United Kingdom
- Reader: WisePOS E
- Platform: Web
- Frontend: JavaScript
- Backend: PHP
This is a link where I implemented the sample code with my API key: https://wpmegaforms.com/stripe-terminal/
Yet it doesn't connect. Is it normal to not be able to connect to the terminal from the web using this integration? Does it have to be local connection? If yes, how can I work around it?
The "Arcane Strategies integration https://stripe.com/partners/directory/stripe-terminal-for-woocommerce" did it, so I'm sure there is a way.
I'm stuck with this for over 20 days now really running out of time, if you could help me I'd really appreciate it.
Is it normal to not be able to connect to the terminal from the web using this integration? Does it have to be local connection?
Yes, the connection to the reader must be over local network
The alternative is the server-driven integration, if you are not able to use a common local network allowing connections between the POS and reader
I'm afraid that's not possible as the POS is hosted in the cloud. So, shall assume that the only solution now is to be registred in beta?
Well its fine for it to be hosted in the cloud, most website are, but typically this is then running in the browser on some machine in a shop, say
and that's sufficient -- the local connection is for the actual client instance
ie, the machine running the browser in the shop, and the reader in the same shop
I see now, so just to confirm, if I used this example and run it from the same network, it should work https://wpmegaforms.com/stripe-terminal/ ?
I'm going to run a test anyway, will let you know how it goes.
Yes, as long as the reader is reachable on the same network where you're actually viewing/loading your POS application on a device, you should be able to use the local terminal integration
Perfect, I'll test now and will let you know
Seems to be working, thank you