#KenKen

1 messages · Page 1 of 1 (latest)

nova gustBOT
mossy hollow
#

Hi there, how can I help?

grand tree
#

Hi i was wondering is it possible to do a capture twice on same charges. For example, we charge our customer $10 with an additional $8 fee to redeliver failed order.

#

These $10 is firstly captured after checkout

mossy hollow
#

Yes you can perform more than one captures so long the amount to capture is less or equal to the uncaptured amount.

grand tree
#

Apparently when i tested it, it will return error with this message
"This PaymentIntent could not be captured because it has already been captured."

#

I've already set it with the amount_to_capture less or half of the total amount

mossy hollow
#

Can you share with me the PaymentIntent ID?

grand tree
#

I'm currently using test mode

#

pi_3MN6R4Jb5WkZGT231V6chXV2

mossy hollow
#

Sorry I was wrong. You can only capture once.

You can only perform one capture on an authorized payment. If you partially capture a payment, you can’t perform another capture for the difference. (Instead, consider saving the customer’s payment method details for later and creating future payments as needed.)
ref: https://stripe.com/docs/payments/place-a-hold-on-a-payment-method#capture-funds

grand tree
#

Hmm so is the preferable way to solve this case is to create 2 payment intents? One for base $10 and the other $8 for insurance

mossy hollow
#

You can consider saving the customer’s payment method details for later and creating future payments as needed

grand tree
#

I see though that will require the customer to actually have enough balance to pay the additional fee when required.

mossy hollow
#

What additional fee do you refer to?

grand tree
#

To clarify more on our case, we charge customer for delivery with $10 base amount + $8 insurance if customer wants package to be redelivered.
We'll check if customer has enough balance to pay $18 firsthand so we won't have the risk of customer not having enough balance in the middle of delivery.

#

One of the payment method that we use is PayNow which i think cannot be saved into Customer's Payment Method

mossy hollow
#

OK, alternatively you can create two PaymentIntents. one to charge the $10 and the other to auth the $8. In this way you are guaranteed to receive $18.