I've properly integrated Braintree with my Rails 3.1 application, I'm just wondering what's the right way of generating PDF receipts so the users can download 'em from the application at anytime.
Braintree has the send-receipt after billing ability which is nice but It seems like they don't have receipt support in their API so, I guess I have to generate it by hand, probably checking the user transactions/subscriptions and their statuses, is that ok? is there a simpler way of doing this? any help would be appreciated, thanks!
The way I handle it in my own applications is having a Invoice model. The invoice is the graphical representation for the payment. Users can view the invoice in html or download a version in PDF (generated using WickedPDF). You can either send them an invoice when a new payment is due or as a confirmation after you received the payment. With a little more information on your business I might be able to give you a more specific suggestion.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With