use the variables created in the callback
using the jbuilder with gon
format amount and purchase date