Module: RailsTrade::Payment::StripePayment
- Included in:
- StripePayment
- Defined in:
- app/models/rails_trade/payment/stripe_payment.rb
Instance Method Summary collapse
Instance Method Details
#assign_detail(charge) ⇒ Object
3 4 5 6 7 |
# File 'app/models/rails_trade/payment/stripe_payment.rb', line 3 def assign_detail(charge) self.payment_uuid = charge.id self.total_amount = Money.new(charge.amount, self.currency).to_d self.currency = charge.currency.upcase end |