After integrating Stripe with our dashboard I’m getting the described error when fetching the stripe Invoices
Expected behavior
The invoices are displayed as intended
Actual behavior
There’s an error when fetching the stripe invoices it seems that it’s related to
Failure Logs
NoMethodError (undefined method `date' for #<Stripe::Invoice:0x00007fbea5759ca0>):
stripe (5.15.0) lib/stripe/stripe_object.rb:376:in `method_missing'
forest_liana (5.4.0) app/services/forest_liana/stripe_invoices_getter.rb:35:in `block in perform'
forest_liana (5.4.0) app/services/forest_liana/stripe_invoices_getter.rb:34:in `map'
forest_liana (5.4.0) app/services/forest_liana/stripe_invoices_getter.rb:34:in `perform'
...
Context
- Ruby Version: 2.6.5
- Forest Liana Version: 5.4.0
- Rails Version: 5.2.4.4
- Stripe Gem Version: 5.15.0
Edit:
I’ve updated the link to the file stripe_invoices_getter.rb