:wave: Hi there! I’m looking into Solidus as an op...
# support
r
👋 Hi there! I’m looking into Solidus as an option for setting up a headless ecommerce website. I’m reading through the Stripe integration docs, and this line stood out to me:
Copy code
When using the Payment Intents API, be aware that the charge flow will be a bit different than when using the old V2 API or Elements. It's advisable that all Payment Intents charges are captured only by using the Solidus backend, as it is the final source of truth in regards of Solidus orders payments.
Am I correct to understand that it’s not recommended to automatically capture payments in Solidus, and that payments should be captured manually? That seemed strange so I figured I’d ask.
s
Hi. I'm not really sure about this, but my comprehension is that the payment intent should not be on auto capture on Stripe's side because even if they authorise the payment, we might refuse the order for whatever reason on our side
we're moving from another PSP to Stripe, and we have no intention at all to manually capture the payment through the admin interface. We, instead, capture via a cron / background job after the order was confirmed
r
Gotcha, that’s more aligned with my understanding of the payment flow. What I had in mind was to customize the Order state machine to perform all the checks necessary, and then capture the payment if everything looks good. I was a bit surprised by the recommendation to do it manually, instead of some kind of recommendation on how to automate it.
k
I think it’s more related to not capturing the payment in the Stripe console, because with SolidusStripe v4, that won’t be reflected in Solidus.
BTW, I highly suggest to use SolidusStripe v5, which should be released today or tomorrow
🙌 1
r
Oh, awesome! The repo says it’s not ready yet so I stayed away from it but good to know, I’ll give it a look