%p = transaction.id Type: = transaction.type Amount: = number_to_currency(transaction.amount) Status: = transaction.status Date = transaction.created_at.strftime("%Y-%m-%d") - if sub_start = transaction.subscription_details.billing_period_start_date From subscription which started = sub_start - else # should not have any of these Not paid as part of subscription