Method: Pay::Receipts#receipt_pdf
- Defined in:
- lib/pay/receipts.rb
#receipt_pdf(**options) ⇒ Object
111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 |
# File 'lib/pay/receipts.rb', line 111 def receipt_pdf(**) defaults = { details: receipt_details, recipient: [ customer.customer_name, customer.email, customer.owner.try(:extra_billing_info) ], company: { name: Pay.business_name, address: Pay.business_address, email: Pay.support_email.address, logo: Pay.business_logo }, line_items: receipt_line_items } ::Receipts::Receipt.new(defaults.deep_merge()) end |