#mike76_dev

1 messages · Page 1 of 1 (latest)

grim pilotBOT
azure quail
#

Hi 👋

so what is returned in the in variable? What docs are you following?

lofty otter
#

I haven't made it to run the code yet, it just doesn't compile at this point.

azure quail
#

What error do you get?

lofty otter
#

invoice.SendInvoice undefined (type *stripe.Invoice has no field or method SendInvoice)

azure quail
#

So the last line there is throwing the error?

lofty otter
#

Yep.

azure quail
#

How are you importing stripe?

lofty otter
#
  "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"
)```
azure quail
#

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?

lofty otter
#

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!