开发者

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 abili开发者_Go百科ty 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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜