Class: Payola::UpdateCustomer
- Inherits:
-
Object
- Object
- Payola::UpdateCustomer
- Defined in:
- app/services/payola/update_customer.rb
Class Method Summary collapse
Class Method Details
.call(stripe_customer_id, options) ⇒ Object
3 4 5 6 7 |
# File 'app/services/payola/update_customer.rb', line 3 def self.call(stripe_customer_id, ) secret_key = Payola.secret_key customer = Stripe::Customer.retrieve(stripe_customer_id, secret_key) customer.save(.to_h) end |