#SuperFedz - env

1 messages · Page 1 of 1 (latest)

boreal plinth
#

Hi there!

#

Can you clarify your question? What do you want to know about the .env file?

sterile granite
#

is this configured correctly, Doesn't seem to be working with my test code

boreal plinth
#

Doesn't seem to be working with my test code
What does that mean? Do you get an error message? If so, can you share it here?

sterile granite
#

No error message strangely. i'll do some more testing first. Trying to set up my wisepos e haha.

boreal plinth
#

Without any error message it's difficult for me to help.

sterile granite
#

No Readers being shown despite following the video i tagged.

boreal plinth
#

do you see any errors in your browser console or in your backend server logs?

sterile granite
#

No errors. It definitely seems to related to my .env file. When i cloned the repo. There was an env.example file. Do i move this into server and change the format? Do you have any examples of how my env should be setup within the following repo https://github.com/stripe-samples/stripe-terminal-list-readers

GitHub

Companion repo for Stripe Developers episode on listing readers. - GitHub - stripe-samples/stripe-terminal-list-readers: Companion repo for Stripe Developers episode on listing readers.

boreal plinth
#

It definitely seems to related to my .env file
If so there should be some errors in your backend code.

#

you should rename env.example into .env, and update the API with your own.

#

For example in the video they do this in the backend. Can you try to console.log the readers variable?

sterile granite
#

fixed it. Small typo haha!!

boreal plinth
#

Great to hear that this is fixed!

sterile granite
#

Onto the next step..

boreal plinth
#

@sterile granite let's keep the conversation in this chat

I've just followed the youtube tutorial to then realise its not available in my country. What is the solution to this thats not massive?

#

So you want to use Terminal? In which country are you?

sterile granite
#

UK.

#

I'm fluent in python but still new to java so finding it tricky. Essentially i just want to be able to use my terminal to take in person payments with the ability to input the price on web? or even the terminal itsself. Its a WisePOS E

boreal plinth
sterile granite
#

It seems to be the server driven integration mode

#

The video you posted i followed is server driven.. Anyway to make this work in the UK?

boreal plinth
#

Oh right. No that's US only for now.

#

But you can use the JavaScript SDK for this.

sterile granite
#

I'll take a look

sterile granite
#

I'm rather confused as to how the javascript SDK works with the terminals. Is there a python alternative? can i do this with pip python or is it java specific

wide thistle
sterile granite
#

I'm in the UK and server driven isn't available sadly

wide thistle
#

Ah gotcha, sorry about that. Then you will need to use either our JS SDK, or one of our mobile SDKs.

sterile granite
#

No worries.

#

Could have done with a video tutorial on it but you only have server driven videos haha

sterile granite
#

Is there any sample code you have of java sdk for the terminal that i can modify to work?

wide thistle
sterile granite
#

Alright.

#

Yeah i'm pretty confused with all the server and client side business. All i need is the ability to type an amount on my reader and input the card.

wide thistle
#

That's not supported. You won't enter the amount directly on the reader. You will need to create a Point of Sale (POS) application that drives the integration and interacts with the reader, and that integration will need to determine how much should be charged.

sterile granite
#

Ok so i can do that with a html site like your server driven tutorial except i need to utilise the SDK for this..