#RaysTech

1 messages · Page 1 of 1 (latest)

hardy stratusBOT
brisk shale
#

What are you confused about exactly? Maybe I can help?

boreal dawn
#

If i were to hypothetically copy and paste all of what's on that would I have a "working" product? Like what else would I need besides what's listed there? I understand that server.js is the backend but can't wrap my head around all of Stripe and how to actually implement it correctly

brisk shale
#

Are you trying to build a custom flow into a page you're building, or trying to use a Stripe-hosted payment page to minimize what you need to build?

#

Checkout, if that's what you're aiming to use, is failry straightforward

#

you can model your server code off that server.js example

#

the key is then to redirect your customer to the session url to complete payment

boreal dawn
#

So I guess my question is, how do I learn what all of the intricate stuff means like the res.redirect(303, session.url); and what not

#

I don't understand a good bit of the specific stuff on there

#

This is my first API project so I'm just unfamiliar with what to really do or guidance

brisk shale
#

That's an example redirect using Express

#

but you can also respond to your client with a json payload, eg, and include the url there for a client-side redirect

boreal dawn
#

I'm just unfamiliar with what redirect even is

#

like what it does, how i could learn about it, etc.

#

I wish i could explain my exact confusion, but all of it is pretty confusing for me unfortunately

brisk shale
boreal dawn
#

I appreciate the help. I guess if I had to condense it into a question, how would you recommend I learn to read the Stripe Docs and understand it? Is that because I don't understand API's well enough?

#

After I read the code I just don't really know what to do next lol, is everything on the page I sent you everything I need to get it up and running essentially?

brisk shale