#dalbeer
1 messages · Page 1 of 1 (latest)
You can cancel through Dashboard or API https://stripe.com/docs/api/payment_intents/cancel?lang=curl#cancel_payment_intent
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
can i reverse the full payment after the payment success like "status": "succeeded",
You mean refund? https://stripe.com/docs/api/refunds/create?lang=curl#create_refund
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
the refund in some period of time and cancel item in sometime both are similar scenarios ?
No, refund and paymentIntent cancellation are different
Let's use Amazon as an example. After successfully purchasing a product, I realized that the size didn't fit. I promptly canceled the order. Within a short period of time, the payment was reversed, and it only took about 10 minutes. From my perspective, it wasn't a refund situation; rather, it was a complete reversal of the payment.
what you should suggest me regarding this
That depends on whether the payment is already captured.
If it's captured, then you need to create a refund, otherwise you can just cancel the payment.
from where i can get this captured ?
- you need to set the capture_method to manual (https://stripe.com/docs/api/payment_intents/object?lang=curl#payment_intent_object-capture_method)
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
2 you can check its status (https://stripe.com/docs/api/payment_intents/object?lang=curl#payment_intent_object-status), if it's requires_capture it means it's not yet captured
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.