#José Rodolpho - capture error

1 messages · Page 1 of 1 (latest)

cobalt remnantBOT
tender cliff
#

As that error notes, that charge has already been captured. Are you trying to capture the funds from a different charge? If not can you tell me more about what is happening here?

teal juniper
#

its a webhook, i make a payment and the wh take the info for me

tender cliff
#

Can you send me the ID of the payment intent that you are working with here? (pi_123)

teal juniper
#

yes i can

#

pi_3MZGXoDKY3qN4EUn01JnxEbv the new one

tender cliff
#

José Rodolpho - capture

#

José Rodolpho - capture error

#

So the capture method on that payment intent is automatic, the funds from that charge are automatically captured

#

Is there a particular reason that you are also making that capture call on the charge?

teal juniper
#

i want to save this on the database

#

the method and the card number

tender cliff
#

That info will already be saved on the Stripe side at that point. On the payment intent object, you can check the payment_method field for the ID of the saved payment method. That is the one you can re-use for payments on Stripe

teal juniper
#

i will check

#

i dont find it, can you help me?

gusty mesa
#

👋 stepping in

#

So you can see the PM ID there

#

pm_xxxx

#

Then you will see the details of the card

teal juniper
#

thanxs

#

i will try