Module: Od::Payments::Customer
- Defined in:
- lib/od/payments/resources/customer.rb
Class Method Summary collapse
Class Method Details
.create(params) ⇒ Object
4 5 6 7 8 |
# File 'lib/od/payments/resources/customer.rb', line 4 def self.create(params) Stripe::Customer.create(params) rescue Stripe::StripeError => e raise Od::Payments::OdPaymentsError, e.error. end |
.show(id) ⇒ Object
10 11 12 13 14 |
# File 'lib/od/payments/resources/customer.rb', line 10 def self.show(id) Stripe::Customer.retrieve(id) rescue Stripe::StripeError => e raise Od::Payments::OdPaymentsError, e.error. end |