#Lanny

1 messages ยท Page 1 of 1 (latest)

sacred crowBOT
green ravine
#

๐Ÿ‘‹ happy to help

near moss
#

req_MxIkVvTrmANTjK

near moss
#

it's java

green ravine
#

let me take a look

#

did you create invoice_items for this customer?

near moss
#

code does not reach this point

green ravine
#

you need to create the invoice_items first

near moss
#

it is created in step 6

#

code fails on step 5

green ravine
#

you missed .setDaysUntilDue(30L)

near moss
#

due date is not the same?

green ravine
#

wait I'm double checking something

near moss
#

same error with daysUntilDue req_smRQTfgQZYCNqA

green ravine
#

Oh you're still using an old Stripe API Version

#

which actually is not compatible with the guide

near moss
#

oh, sorry

#

thank you

green ravine
#

so with your API version you need to first create the invoice items

#

then create the invoice

near moss
#

1 more question
i create an invoice like this
InvoiceCreateParams invoiceCreateParams = InvoiceCreateParams.builder()
.addExpand("payment_intent")
...
.build();
but invoice.paymentIntent is null
why?

green ravine
#

maybe there's nothing on that invoice so nothing to be paid

#

which invoice are we talking about here?

near moss
#

got it, thanks