#Neuro-Payment

1 messages · Page 1 of 1 (latest)

pale vector
#

Hi, Just out of curiosity, why don't you split them to 2 separated PaymentIntent? PaymentIntent is built for an isolated "intent" to pay for something, ie a Product in your case

keen bridge
#

Hi orakaro, Is this possible to charge more than one PaymentIntent during a checkout page payment ? If yes, do I have to pay several time the Stripe fees ?

pale vector
#

Oh so you are using Checkout?

keen bridge
#

No I mean There is a payment page, using the JS lib transmitting the client secret of my unique PI regrouping severals product

#

For the moment, my system create a payment Intent for all the product in the customer cart

pale vector
#

Hmm yeah it makes sense. But a PaymentIntent is a state machine itself, and I don't think it's possible to sort of "break down" its status into 1st part and 2nd part. With that said, with 1 PaymentIntent, how about only Capture it after you received both products accepted?

keen bridge
#

In fact, different product can come from different store (such as amazon), The first connect account is a store, and this store accept automatically the order, so he wants to have the cash. but the second store may not have the product in stock and then can refuse the order. So there is a state "one accept, another decline" to concider so accept the Capture after both are accepted is not working every time

pale vector
#

One possible solution is to use Separate Charges and Transfer. You can wait until the 2nd shop respond with yes/no and decide to Capture the full amount or only the first part of the PaymentIntent. But before that when the first shop accepted the order, you can Transfer the fund to them beforehand

#

But that will requires you to have balance on your account

keen bridge
#

Yeah I sea what you mean, I already works with charge and transfers but today it's automatic. So you mean having a Balance that pay the first and then if the second accept or not, or there is a timeout, refund my balance with the captured intent and then pay the other with the rest right ?

#

What about just wait for all accepts (I give 24 h to accept) and automatically capture the found accepted and refunds the rest ?

pale vector
#

Oh if you could set such an 24hrs limit, then yes, you can control what amount to capture at that time!

#

I am a bit confused by the "refunds" If you have a limit, you don't need to transfer beforehand, hence there is no "refunds"

keen bridge
#

I said refunds because when I capture partially, it is written "partial refund" on stripe dashboard but indeed you' right ! Yeah I definitely will go for this I think. Thank you for your time orakaro I really appreciate this 🙂 have a nice day, bye for now !