#Anant
1 messages ยท Page 1 of 1 (latest)
๐ happy to help
yes it's always possible to partially capture a PaymentIntent
you just need to specify the amount_to_capture https://stripe.com/docs/api/payment_intents/capture#capture_payment_intent-amount_to_capture
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
yes sure, but is my answer not enough?
it's some how ok, but my scenario is different
go ahead
example:
order:(have three products)
p1: 100$
p2:(200$)
p3:(300$)
I have created a payment intenet and hold the full amount (600$)
Now I want to capture each products amount on separate days
for the same hold payment.
this different days and partial payment will done by your given link?
exactly
no once you captured a PaymentIntent
it's not possible
if you're looking for installments you can look at this https://stripe.com/docs/billing/subscriptions/subscription-schedules/use-cases#installment-plans
ok, what happens if in case first product payment capture got failed? due to insufficient balance or any other reason?
Are I am still able to hit capture for the other 2 or it completely going to be canceled?
PI is same as I am holding the total amount as one (600$)
??
Hi! I'm taking over my colleague. Please, give me a moment to catch up.
Please give me a minute.
sure
Are you able to create 3 PaymentIntents for each product, and then capture each one in full? This seems to be a much more straightforward approach.
I thought the same.
But I have some queries. shall I share?
?
??
Are you there @hallow crater
??
Yes, I am here. I will respond as soon as I can.
Yes, please share
query:
a ) since my order has 3 products I have to create three payment intents
for that, do I have to hit the curl request 3 times?
b) for all three payment intents is the same card can be used? also, payment id will come differently?
c) do we have any concept to send bulk payment intents in one go so that in a single curl request I can send all 3 products' payment intents?
d) products number can be increased? what will happen if any payment intent api call crashed due to any reason like timout or any other issue?
a) yes
b) you can set up the card for future use with SetupIntent and then charge it 3 times off-session: https://stripe.com/docs/payments/save-and-reuse
c) no
d) you will need to retry the call.
one more query at last.
Sure
a) do we have a concept of automatic capture of payment intents? currently, I have to call capture API explicitly.?
b) Also, do we have any date concept through which I can tell that on this date capture payment needs to happen automatically?
a) capture_method is automatic by default: https://stripe.com/docs/api/payment_intents/create#create_payment_intent-capture_method
b) not sure what you mean
Or do you mean by "automatic", after a certain date the PI will be captured, unless it's cancelled?
what I mean : when I am creating a payment intent for holing an amount can I send a date in any parameter so that on that day capture happen automatically
*holding
*on that date
No, that's not possible, you will need to capture it manually. Hence the name.
Ok, thanks
I will try to create multiple payment intent and will see what happen
but it is sure that for same card we can create multiple payment intents?
Yes, if you set it up properly with SetupIntents, like in the article I shared.