Tom Murdoch said about 4 years ago on Stripe Payments :
I'm getting an error on the webhook return;

Completed 500 Internal Server Error in 8ms (ActiveRecord: 0.5ms)


  
NoMethodError (undefined method `list_line_items' for Stripe::Checkout::Session:Class):
  
app/models/payment_received.rb:39:in `line_items'
app/models/payment_received.rb:32:in `complete_purchase'
app/models/payment_received.rb:14:in `call'
app/models/payment_received.rb:3:in `call'
config/initializers/stripe.rb:11:in `block (2 levels) in <top (required)>