From 70b96cf3b82c24bd68059d8a3cab6a0a8b6579e9 Mon Sep 17 00:00:00 2001 From: Justin DiRose Date: Wed, 6 Jan 2021 14:01:16 -0600 Subject: [PATCH] FIX: Properly show one time payments in user billing (#40) Encountered a bug where some one time payments were not showing under User > Billing > Payments. This was due to a simple error in the logic --- .../discourse_subscriptions/user/payments_controller.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/controllers/discourse_subscriptions/user/payments_controller.rb b/app/controllers/discourse_subscriptions/user/payments_controller.rb index 3bc7841..640df41 100644 --- a/app/controllers/discourse_subscriptions/user/payments_controller.rb +++ b/app/controllers/discourse_subscriptions/user/payments_controller.rb @@ -49,6 +49,7 @@ module DiscourseSubscriptions def parse_invoice_lines(invoice_lines) invoice_product_id = invoice_lines[:price][:product] if invoice_lines[:price] && invoice_lines[:price][:product] invoice_product_id = invoice_lines[:plan][:product] if invoice_lines[:plan] && invoice_lines[:plan][:product] + invoice_product_id end end end