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
This commit is contained in:
Justin DiRose 2021-01-06 14:01:16 -06:00 committed by GitHub
parent b6de4a7b67
commit 70b96cf3b8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -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