#bomsn

1 messages · Page 1 of 1 (latest)

fading cradleBOT
vital robin
#

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

shy chasm
#

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

vital robin
#

Ok so the error you are sharing is when you do the call stripe.terminal.readers.create?

shy chasm
#

No the error happens when I use terminal.connectReader(selectedReader) . This one doesn't seem to produce any errors in Stripe Dashboard.

vital robin
#

Do you have a reader ID (tmr_xxx) ?

shy chasm
#

Yes tmr_E0aaPAZeRkfIPi

vital robin
#

Thanks for sharing

shy chasm
#

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

vital robin
#

Yes now it's online in fact

shy chasm
#

Yes, working on it, thanks

shy chasm
#

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

vital robin
#

Now back to your issue, could you please provide a sample project that we can try to reproduce the issue ?

shy chasm
#

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.

willow linden
#

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

golden elk
#

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.

Set up a Stripe Terminal SDK or server-driven integration to accept in-person payments.

shy chasm
#

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.

golden elk
#

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

shy chasm
#

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?

golden elk
#

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

shy chasm
#

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.

golden elk
#

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

shy chasm
#

Perfect, I'll test now and will let you know

shy chasm
#

Seems to be working, thank you

golden elk
#

Great!

#

you're welcome 🙂