#mike76_dev
1 messages · Page 1 of 1 (latest)
Hi 👋
so what is returned in the in variable? What docs are you following?
I'm following these docs: https://stripe.com/docs/invoicing/integration/quickstart.
I haven't made it to run the code yet, it just doesn't compile at this point.
What error do you get?
invoice.SendInvoice undefined (type *stripe.Invoice has no field or method SendInvoice)
So the last line there is throwing the error?
Yep.
Hmmm... I can see it defined here: https://github.com/stripe/stripe-go/blob/master/invoice/client.go#L114
How are you importing stripe?
"github.com/stripe/stripe-go/v75"
"github.com/stripe/stripe-go/v75/customer"
"github.com/stripe/stripe-go/v75/invoice"
"github.com/stripe/stripe-go/v75/invoiceitem"
"github.com/stripe/stripe-go/v75/paymentintent"
"github.com/stripe/stripe-go/v75/price"
"github.com/stripe/stripe-go/v75/product"
"github.com/stripe/stripe-go/v75/webhook"
)```
Hmmmm....okay yeah that's how we are doing it
So you should have the right invoice type.
And this is the exact file from the Quickstart?
No, I have my own code modified with the suggestions from the docs.
Weird, now I see that invoice.SendInvoice is defined on GitHub. Before it wasn't. But I still have this error.
Okay, I'm going to bed, it's quite late here. I see that you're very helpful, trying to help all these folks all alone, so thanks, very much appreciated!