#N.T.W-js

1 messages · Page 1 of 1 (latest)

rose oar
#

@noble wing hi! so I have to admit I'm not as familiar with JS frameworks as you are. I think my first point of confusion is, are you building a backend or a frontend here and exactly what part of Stripe are you trying to use?

noble wing
#

So Deno is a runtime similar to NodeJS (https://deno.land/) and the runtime does not support CommonJS

But that only by the way

I was given a clear order that I should build an app with a digital shop (so it sells digital products).

That means I need a checkout where I can redirect the customer to stripe as well as a callback where I can verify the payment.

I would like to do as much as possible in the backend

(my main language is German, sorry for this bad english i use a translator)

rose oar
#

ok then all you really need is to install stripe-node on your backend to create a CheckoutSession object and then redirect to its URL from your backend route I would say.

#

was there a specific problem you ran into?

noble wing
#

what would be the workflow with the API? (without libary)

rose oar
#

it would be making raw HTTP calls to our API

#

in oru documentation you see we have 'curl' examples? You'd make HTTP requests to do the same thing(as you said, you could use fetch for that if you wanted)

#

but it's really complicated especially if you're using more complex parameters so we do try to encourage the use of our libraries instead.

noble wing
#

unfortunately it is not possible for me to use the libary

then i will try with http requests

where can I write a recommendation for the libary that you can also support Deno in the future?

rose oar
#

do you know why Deno doesn't support it?

#

oh it's because it's some environment that doesn't support https and is not full Node or something