by JonoBB · 4y ago · 0 comments
PaymentIntents workflow (including the necessity to listen for webhooks) deserves a special place in hell. Its like they decided to copy Paypal IPN.
I have used, recommended and intgrated Stripe to multiple businesses over the years (generating hundreds of US$ millions). For the past 2 years or so, I have migrated most of them away from Stripe, and any new integrations are done through other payment processors.
I am currently involved in a project to add Stripe support to a product, and it's a lot more complicated to set up a simple payment than other APIs on the market.
From everything I'd heard about Stripe, I thought the API would be really simple, but it's not.
Stripe abstracts away all the complexity having to deal with dozens of payments methods behind this single PaymentIntent API, which let you query the status of a payment at anytime (and webhooks are just a way to listen for updates in realtime).
There are ways to deal with that - a very simple one is a "mop up" process, as suggested by the GOV.UK Pay Service:
https://docs.payments.service.gov.uk/integrate_with_govuk_pa...
I'm working though Stripe integration for the first time. It's one of the worst APIs I've ever dealt with.
I couldn't find a single place advising which webhooks to listen to - or what their payloads should be - for simple subscription behavior. It's actually inconsistent in places.
They built and accrued all of this complex billing behavior for all of these incredible upmarket needs, and in the meantime they forgot about the simple cases.
I almost used PayPal or Square. Perhaps I should have.
Stripe seems to have moved on to upmarket.
Braintree user here, have I got news for you. I regularly have to waste weeks of developer time on payment processing. The documentation is terrible and fragmented, some things are not explained anywhere, support response times hover around two weeks (I'm not kidding), and the canned support responses rarely fit my use case, so there's always a back-and-forth.
This would all be fine if I could just get it done once, but the thing rears its head regularly, what with the newer PSD2 regulations or something else.
As an example, after having done all the 3DS2 integration work (well, it was closer to re-work, as extensive changes were required), Braintree now tells me that 3DS1 is being deprecated (fine) and some of my transactions are 3DS1. Well, which ones, and WHY? I have no idea. I asked support on Sep 27, that was 12 days ago, no answer.
I looked at Stripe and had a really hard time understanding how I can fit my subscription SaaS into it. I think if you fit the simplest common use case and you're willing to outsource everything, Stripe could be simple to use. If you want to be independent in any way, or want to maintain the relation to the customer yourself, things quickly get difficult. But the real reason why I can't even consider Stripe is multiple currencies: I want to settle in three currencies (including USD), and Stripe will only settle in USD to a bank account based in the US. Good luck getting a US bank account if you are an EU small business. Also, pricing looks reasonable at a first glance, until you notice the currency conversion fees and the extra "billing" fee. In my specific case I would end up at about 5.4%.
Stripe's forex fees are horrendous. Wise charges <0.5%, Stripe >3%. The spread here is similar to the credit card charge in the first place!
Genuinely 3 months of development, with more roadblocks than I could have ever imagined.
I don't get the complaints here. Yea, it is hard to write payments workflows. Learn to properly organize your backend to account for all edge cases. Use stripe test clocks. Use mock objects and stripe CLI. Everything has been handed to you on a silver platter by Stripe IMO.
PaymentIntents and SetupIntents make setting up a basic subscription Billing interface incredibly painful. The documentation is awful and spread across multiple sections of the Help pages so you have to read multiple articles to piece together how it's supposed to work in your specific scenario.
Even understanding when a PaymentIntent is recommended vs when a SetupIntent is needed takes some doing.
And don't get me started on trying to understand whether I need to use the confirmCardPayment or the confirmPayment or confirmCardSetup etc etc functions.