#José Rodolpho - capture error
1 messages · Page 1 of 1 (latest)
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?
Can you send me the ID of the payment intent that you are working with here? (pi_123)
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?
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
If you are looking for part of the credit card's number, you can retrieve that payment method object and checkou out the last4 property on the card that is on that object https://stripe.com/docs/api/payment_methods/object#payment_method_object-card-last4
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.