#igorb_api

1 messages · Page 1 of 1 (latest)

dusky jungleBOT
#

👋 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.

cinder tusk
#

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"

unkempt yoke
cinder tusk
#

So if I follow exact steps it should work? I mean to create session, then capture with parameter "final_capture": false it should work?

unkempt yoke
#

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',
  },
},
cinder tusk
#

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

unkempt yoke
#

If it still doesn't work, please share your Payment Intent ID

cinder tusk
#

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';

unkempt yoke
#

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+

cinder tusk
#

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

unkempt yoke
#

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+

cinder tusk
#

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

unkempt yoke
#

Checking why one allowed multicapture while another didn't

cinder tusk
#

In this case I need to pass something else besides $params["payment_method_options"]["card"]['request_multicapture'] = 'if_available'; to make it work

unkempt yoke
#

You shouldn't need to. I'm checking the differences other than setting request_multicapture to if_available

cinder tusk
#

Thank you

unkempt yoke
#

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

cinder tusk
#

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

unkempt yoke
#

Definitely! Feel free to reach out here if you have any further question 😄