#ridero

1 messages · Page 1 of 1 (latest)

strong frostBOT
quasi marsh
#

Hi there, if there's no output or error, you should check if your code is executed at all.

summer leaf
#

Hi Jack, yes its executed i have tried adding a log right before calling the stripeApi methods and these are printed out so the code is definetely executed

quasi marsh
summer leaf
#

No there are no logs showing

#

I also monitored the network tab when trying out the methods and there was never any request going out to stripe so i suppose there is something wrong with my setup

blazing sorrel
#

this is backend code though, to run on a Node backend server, you don't run in a browser, that won't work

#

for example it's not safe to have secretKey in frontend code where anyone can open the Sources tab and pull that out

summer leaf
#

So the node sdk only works in backend?
Is there also an sdk that works with frontend+publishable key or do i have to redirect all requests over my backend?

blazing sorrel
#

So the node sdk only works in backend?
yes
Is there also an sdk that works with frontend+publishable key
no, operations like getting a list of all your customers and subscriptions are backend server operations
do i have to redirect all requests over my backend?
yes

summer leaf
#

alright thanks for clearing things up!

#

so if i wanted to start a checkout session i would also have to go over my backend?

blazing sorrel