Braintree Revenue Generation

I correctly integrated Braintree with my Rails 3.1 application, I’m just wondering what right way to generate PDF documents, users can download them from the application at any time.

Braintree has send-receipt after payment ability, which is good, but it seems like they don’t have receipts support in their API, I guess I need to generate it manually, maybe check user transactions / subscriptions and their statuses, right? is there an easier way to do this? any help would be appreciated, thanks!

+6
source share
1 answer

The way I process it in my applications has an invoice model. An invoice is a graphical representation of a payment. Users can view the invoice in html or download the PDF version (generated using WickedPDF ). You can either send them an invoice when a new payment is presented to you, or as a confirmation after receiving the payment. With a little more information about your business, I could give you a more specific suggestion.

+5
source

Source: https://habr.com/ru/post/892504/


All Articles