#fundrise_evan

1 messages · Page 1 of 1 (latest)

jagged spindleBOT
burnt hawk
#

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.

bleak galleon
#

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?

burnt hawk
#

You can check to see if the Invoice's payment_intent property is empty or not first, before checking for the payment error.

bleak galleon
#

ha, yep, that sounds like what I need to do

#

Thanks @burnt hawk !

#

Just to confirm, would any other Invoice (besides the initial $0 invoice) have a Payment Intent?

burnt hawk
#

Not always. If the amount of the Invoice is lower than our minimum charge amounts there wouldn't be a Payment Intent.

#

And other Invoices later could potentially be for $0 due to factors like credits, discounts, etc.