Class: Payola::UpdateCustomer

Inherits:
Object
  • Object
show all
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, options)
  secret_key = Payola.secret_key
  customer = Stripe::Customer.retrieve(stripe_customer_id, secret_key)
  customer.save(options.to_h)
end