4 ms·
It can be 7 lines, if that's what your business is. If you run a service where you mail people orders, for instance, then 7 lines of checkout is enough. The ord
by stu2b50 6y ago
It can be 7 lines, if that's what your business is. If you run a service where you mail people orders, for instance, then 7 lines of checkout is enough. The order will show up on your dashboard and you can mail them the goods.
If you run a digital service where you need to automate payment confirmation, of course that will require communication between your server and their server. What do you expect.
- julianeon 6y agoI expect it to be easy: actually, "seven lines of code" easy (look that up and see how many results it gets). They are getting traction and users off this claim. I expect them to live up to it - simple as that. If it's harder than that: I expect them to devote engineers and brainpower to the problem until it's not. They should solve it - that's their business. I tried just now searching for 7 line checkout code, finding the code for it. (It's fine if it's 12, that's not the sticking point - but I can't find 12 either). It's not there. The simplest result is this one. https://stripe.com/docs/payments/checkout/accept-a-payment https://stripe.com/docs/payments/checkout/accept-a-payment Note the "client and server flowchart" diagram, with its 6 boxes. https://github.com/stripe-samples/checkout-one-time-payments/blob/master/client-only/client/html/README.md https://github.com/stripe-samples/checkout-one-time-payments... I think the closest to 'simple install' I can get is this code, which was not easily discoverable, in my opinion. https://github.com/stripe-samples/checkout-one-time-payments/blob/master/client-only/client/html/index.html https://github.com/stripe-samples/checkout-one-time-payments... It stand by what I said: it's a hell of a lot harder than 7 lines of code. I find the claim irritating because the reality is it's blatantly untrue.
- stu2b50 6y agohttps://stripe.com/docs/payments/checkout/accept-a-payment https://stripe.com/docs/payments/checkout/accept-a-payment You do realize that only steps 1 to 5 are necessary to take in payments? If that's the scale you're on, you're done. Step 5 is the only one with code, and I didn't count but it looks like 7 to me without comments. Of course, if you require integration on your backend, you must write code. I don't understand what you're expecting. Stripe can't modify your code base to receive payment confirmation for you. That's just not possible lol.
- julianeon 6y agoI think it's fair to ask what I'm expecting, or, put another way: how it could be better. And maybe, as part of that, why Stripe should care. I think your explanation did help to make this more understandable, that was useful. In the end (long before writing this comment) I got it to work the 'hard way' so at this point I'm set. The problem isn't really me, since after all I got Stripe to work. The problem isn't truly the inexperienced solo junior dev who gets stuck either - I don't imagine that costs them very much business. The real problem is Shopify, and how potential Stripe customers get bounced off of Stripe to Shopify. I honestly wonder how much of Shopify's growth can be attributed to "couldn't get Stripe to work, gave up." Or, to go deeper into that, the business owner who's looking for a payment solution, and wants it to be easy. I think Shopify blew up partly because lots of other solutions were like "we can't make it that easy, but here's this 'easy' solution...' whereas Shopify was the company that said, "here's what you asked for, the easy solution - done." I think if Stripe's documentation and solutions were better, some of the business that went into Shopify's column, would go into Stripe. Possibly a very significant amount.
- stu2b50 6y agoI'm still confused on what part of the documentation confused you. Like the fact that it keeps going when some users can stop? Regardless "where did it go wrong?". Well, nowhere. If you think its wrong now, it was wrong always. There was never a point where stripe could magically write your backend integration with it. The 7 lines always referred to client side integration, enough code that a customer could give you money. Shopify isn't in the same niche as stripe. I don't know if the deal changed, but Shopify payments was built on stripe. It uses stripe under the hood. Shopify is not a payment handler, it handles making an online shop.
- julianeon 6y agoThanks; I think I see your point, how Stripe perceives it. "Payment handler not an online shop" summarizes it.
- fragmede 6y agoThe modern-day equivalent of the "7-lines of code" is the stripped down, client-side only integration at: https://stripe.com/docs/payments/checkout/client https://stripe.com/docs/payments/checkout/client tl;dr, click on the stripe website a bunch, then copy and paste the generated html+js (which includes your api key, so you, the user don't have to mess with that) into your own website. The demo UX is here: https://70p1h.sse.codesandbox.io/ https://70p1h.sse.codesandbox.io/
- julianeon 6y agoThank you; that's good to know.
- voidray 6y agoGood find, and IMHO this should probably be the default integration in their docs; the first tutorial listed here is for the Payment Intents API, which is a more complicated version of the Charges API: https://stripe.com/docs/payments https://stripe.com/docs/payments
- deleted 6y ago[deleted]