Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Generating Braintree Receipts

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!

like image 638
jpemberthy Avatar asked Jul 11 '11 15:07

jpemberthy


1 Answers

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.

like image 182
Maran Avatar answered Oct 28 '22 17:10

Maran