#cavint9510
1 messages · Page 1 of 1 (latest)
Hi there!
hey
To cancel the Subscription: https://stripe.com/docs/api/subscriptions/cancel
To refund the PaymentIntent of the first Invoice: https://stripe.com/docs/api/refunds/create
yep,but i wanna know how can i get the first inovice's paymentIntent or charge
Because the refund api only support use paymentIntent and charge to process
Sure, the Invoice contains a PaymentIntent: https://stripe.com/docs/api/invoices/object#invoice_object-payment_intent
I'm guessing the invoice has a $0 amount (or an amount lower than $0.50)? If so that's expected that there's no PaymentIntent, since there's nothing to pay.
i konow,so if amount lower than $0.5,the paymentIntent will be null.right?