#ninja-legacycheckout-react
1 messages ยท Page 1 of 1 (latest)
ninja-legacycheckout-react
@trail needle yes extremely outdated. It's for our Legacy Checkout product we deprecated 4+ years ago when we released our newer Checkout integration. Also this was maintained by an external developer, not Stripe
AHHH thats why this codebase is freaking failing payments, but some goes thorught, check this payment ID out to confirm for me that its this library that cause the errors, its in production, real money... card_1NGHJxBt7kb9IN0zbgQZHJWU
context: some guy have implemented stripe checkout in this web app and they used that library.
that's not a "payment" that's just a Card id but yes that used Legacy Checkout which we deprecated over 4 years ago
what do you need to check it?
I already checked it and confirmed what you needed. I just explained at the same time that this id is a Card id not a Charge or PaymentIntent id which would represent a payment, that's all
ahh okay, well thats quite funny that a senior developer implemented this 7 months ago lmao..
anyway, i see a sucesfull payment in the dashboard too, is it possible some payments would work anyway? po_1MsdrCBt7kb9IN0zspepvt4I
That is the id of a Payout which represents money moving from your Stripe account's balance to your own external bank account.
card_1MryUwBt7kb9IN0zPO88cKG0
lol
yes that is a Charge id for one specific payment. If you look at it in the Dashboard you can see if it worked or not.
Sorry I'm not sure what all those ids are for? I already explained what you're doing
haha yeah.. well basically, this library using something that is depricated, most payments fails, but i see some suceeds, so thats what the ids is for, to see how its possible for some payments to suceed anyway
but anyway, this needs to be migrated.
so i think i'll use the react stripe payment components
as it needs to have its own UI
but yeah now i know for sure at least why payments does not work - the library is totally outdated.
Legacy Checkout only accepts card payments and doesn't support 3DS. You're in Europe where 3DS is required most of the time, hence why it likely fails most of the time
And yeah you should mostly follow https://stripe.com/docs/payments/accept-a-payment which has end to end examples with Checkout or your own form/UI with PaymentElement
Perfect thanks! ---- how long time do you say it would take to migrate from the current lib to making my own checkout with stripes react PaymentElement? just give a rought estimate
Impossible to say, depends really on how experienced you are with coding yourself and all that. Some people it'd take a couple hours, others 3 weeks
im a senior typescript dev, but have not touched these stripe paymentelement before
so lets say ish 13 hours just to leave some room
and for testing
or you use our Checkout product and it's drastically easier :p
but yeah if you are an experienced web developer I'd say a couple hours to have an MVP and then a couple of days to wire it all up
depends if you do card payments only or also local payment methods at the same time
mmm alright, yeah they just want a popup with the credit card info and thats it. So it really does not seems that this will be hard of the payment elements does the validation etc..
only thing im concerned with is that i need to pass in a custom tax rate for different customers as the customers are at different places in europe
- any easy way to do that as in the Checkout product? as the tax values comes from the user object in the DB so i have access to it when they do a payment
i mean with the paymentelements
We have a newer API for it https://stripe.com/docs/tax/calculating
But it's going to be drastically harder to do this
like days of work extra
haha fuck, so what shall i say to this client guy then, as ofc he want the stripe to work quick, and he want the same UI as he has now with the popup.
go with Checkout ๐
yeah but it hurts the UX to redirect from the site to use the Checkout ๐ฌ
but why would it be day extras if:
you just know this X user is from norway, caluclate the tax for the user, pass it into the payment element stuff
Sure, that's the trade off here -- Checkout offers a complete solution where most of this is automatic but there is limited UI customization
You can certainly build that custom flow with the Tax API, it's just more work
with more work, i need to know how much more work? what is required to pass in custom tax rate using the PaymentElements?
I'd say it's considerably more complex. You should read through the entire guide for this here: https://stripe.com/docs/tax/custom
And then compare to collecting tax with Checkout: https://stripe.com/docs/tax/checkout
ah shit this feels like more than 10 hours to do as 1 senior developer for both the frontend and backend, or what do you say?. How long time would it take for you?
I think you could get a working version faster than that, but making it work the way you need and handling all the edge cases (eg, handling customer addresses etc) is going to take much longer.
yeah i need a production ready version that collects payments from multiple of countires in EU
My recommendation would be: build the Checkout version first to get something that works ASAP. Then, while that's working to serve customers, you can build out the custom flow if the checkout version is not meeting all your needs.