You’re not receiving notifications from this thread.
PDF Receipts Discussion
hashes are ordered too (for the design choice) i think since ruby 1.9 the only real difference is that "keys" can be duplicated in the array style
Is it possible to render the pdf without controller? maybe sending out via emails, or saving to s3
Can you give me direction on using "endless scrolling in rails" instead of pagination.
Thanks in advance.
I'm sure you're aware of livecoding.tv, but I think it would be awesome for you to livestream the creation of gems like this so we can see the process. Plus, then we'd have the recorded streams to go back to and reference.
There aren't very many Rails streams, so it would also be a great opportunity to gain some followers for GoRails!
Hey, the gem it's pretty nice, I'll try with a project that i'm working, but i have a question first, Can I put footer and header to the PDF as Prawn gem?.
How to make a receipt from a form after client clicked submit button?
Do you think it's possible to generate a new receipt everytime the customer get charged?
I assume there's something to do with the transaction logs to automate this?
TY and good job! ;)
Yeah! So normally with subscriptions, I listen to the charge.created webhook and save a copy of it to the database as a Charge record. That's like the example I use. The reason for needing the webhook is that subscriptions charge the user monthly and they don't have to initiate anything in your app.
For one-time charges, you can create a Charge object immediately during checkout and use that.
And if you want to store the receipt PDF files instead of generating them dynamically each time, you can save the file it generates to S3 and save it using Shrine or Carrierwave, etc and just link to that file from your view.