We've moved discussions to Discord

Setting default currency for charges (not subscriptions) using Pay

Darren Smyth
[I feel like I'm being quite needy today with this being my second post!]

Whilst subscriptions are great ... I want to be able to add one-off charges to my website. People should be able to pay to view just one video (for example). Whilst I have now gained an understanding of how to use the Pay gem ... I can't seem to find a way to ensure any charges made are in AUD (for example).

Is there a way to do this?

Also, is there a way to track the payment against a specific item (video id for example?). I want to ensure that, when a viewer, pays for a video, they can watch it repeatedly.
Chris Oliver
I haven't tested this personally, but you should be able to just pass the currency option into the charge method I think:

@team.charge(1900, currency: 'aud')
Darren Smyth
Following up on this, I've been looking through emails being sent using the Pay gem and it appears the emails have USD hard coded into the templates. As I'm using AUD this might be a little problematic. Is there a way to have the currency being used set in the pay.rb setup file and this then used in the mailers?
Notifications
You’re not receiving notifications from this thread.