#fundrise_evan
1 messages · Page 1 of 1 (latest)
Hello! If an Invoice has a total amount due of $0 it will not create a Payment Intent, no. There's no way to create a Payment Intent for $0. Why do you want one?
There's likely another way to accomplish what you're trying to do without a Payment Intent.
I was hoping to make my business logic a little smoother 😁
Essentially, I'd like to check whether my Subscriptions last Invoice's Payment Intent has a lastPaymentError
It sounds like I may just need some handling around the request to get the PaymentIntent (in the event that the Invoice doesn't have one)
Out of curiosity, what would that other way be? And in what case would you want to use it?
You can check to see if the Invoice's payment_intent property is empty or not first, before checking for the payment error.