#igorb_api
1 messages · Page 1 of 1 (latest)
👋 Welcome to your new thread!
⏲️ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
🔗 This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1326812759823745055
📝 Have more to share? Add more details, code, screenshots, videos, etc. below.
Getting error: Error message
"message": "Multi-capture is not supported on this PaymentIntent. You cannot not pass the final_capture parameter when capturing this PaymentIntent."
"type": "invalid_request_error"
Stripe CLI doesn't support multi-capture. I'd recommend checking this guide on how to integrate multiple capture: https://docs.stripe.com/payments/multicapture
So if I follow exact steps it should work? I mean to create session, then capture with parameter "final_capture": false it should work?
Have you checked the guide about creating a Checkout Session above? It mentioned following fields should be set as well:
'payment_method_options': {
'card': {
'request_multicapture': 'if_available',
},
},
I'll create now new payment intent and check if it will work (with all needed params) and let you know in 2-3 minutes
If it still doesn't work, please share your Payment Intent ID
Here is new payment intent: pi_3QfGFG2MenHkIoIh0zmrBqmE
Is it possible to see now if it support multi_capture?
I passed param: $params["payment_method_options"]["card"]['request_multicapture'] = 'if_available';
In https://dashboard.stripe.com/test/logs/req_ALBq6yNYiFMQ7D, charges.data.payment_method_details.card.multicapture.status has the status of unavailable. Multi-capture isn't supported
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
In https://docs.stripe.com/payments/multicapture:
IC+ feature
Multicapture is part of the functionality we offer to users on IC+ pricing. If you’re on blended Stripe pricing and want access to this feature, contact Stripe Support.
Multicapture function is only supported on IC+ pricing, but I'm not too sure if your account is on IC+
Thank you for explanation about charges.data.payment_method_details.card.multicapture.status. Will check it in future
I think it is on this IC+ pricing
I don't have necessary expertise about the pricing configuration on your account. I'd recommend writing in to Support https://support.stripe.com/contact, so that they can have a check whether your account is on IC+ and the reason why multicapture isn't supported if you're on IC+
What I also noticed is that when create in CLI next intent:
stripe payment_intents create --amount="5000" --currency="USD" --capture-method="manual" --confirm="true" --payment-method="pm_card_visa" -d "automatic_payment_methods[enabled]=true" -d "automatic_payment_methods[allow_redirects]=never" -d "payment_method_options[card][request_multicapture]=if_available"
And then try to capture not all amount, it wokrs fine:
stripe payment_intents capture "pi_3QfGVB2MenHkIoIh0lErOC5h" --final-capture="false" --amount-to-capture="500"
Can see in Dashboard that it is partially captured
This confirm that multi capture works or correct me if I'm wrong
In https://dashboard.stripe.com/test/logs/req_tZpZtiGtHXKIdb, the card.multicapture.status was shown as available - that's why multiple capture is allowed
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
Checking why one allowed multicapture while another didn't
In this case I need to pass something else besides $params["payment_method_options"]["card"]['request_multicapture'] = 'if_available'; to make it work
You shouldn't need to. I'm checking the differences other than setting request_multicapture to if_available
Thank you
The issue is likely due to payment_method_options.card.request_multicapture not being set in https://dashboard.stripe.com/test/logs/req_ALBq6yNYiFMQ7D as payment_method_options.card has been overridden the config in creation request
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
Can you try setting payment_method_options.card.request_multicapture in the confirm request as well?
Is there reason why your confirm request has to set capture_method in each payment method?
When the parent level of capture_method has been set in the creation request, you shouldn't need to set the capture_method in each payment method
Alternatively, you can remove all the capture_method for each payment method types under payment_method_options
I understood what you mean. Need to try this in a right way but can't do it fast (I mean in 2-3 mins). I will test it and if still will be getting errors - write again but I think everything should be fine
Definitely! Feel free to reach out here if you have any further question 😄