#RaysTech
1 messages · Page 1 of 1 (latest)
What are you confused about exactly? Maybe I can help?
Thanks for the help but it feels like dang near all of it. I just want to make a Stripe payment processor for a clients website with JavaScript and Node.JS and I'm referencing this https://stripe.com/docs/checkout/quickstart
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
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
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
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
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
I see -- I don't think I can get into the details of how all that works, but you can read about how that Express example works here:
https://expressjs.com/en/api.html#res.redirect
If you're uncomfortable managing server code or client-server interactions, I'd recommend looking at Payment Links. You can set these up in the dashboard and put simple URLs in your page:
https://stripe.com/docs/payments/payment-links
We even offer some pre-made Pricing Table options you can add by copying and pasting a snippet:
https://stripe.com/docs/payments/checkout/pricing-table
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?
Yes, if you take the code here and follow the steps on the left, this should run as is