diff --git a/lib/customer.rb b/lib/customer.rb index 547c7023df426a443384127282908414109de7db..0d45b1cf5fb5a7c20468f8086c5a99c4d5f8fe54 100644 --- a/lib/customer.rb +++ b/lib/customer.rb @@ -41,7 +41,7 @@ class Customer klass.new( customer_id, jid, - plan: CustomerPlan.extract(customer_id, kwargs), + plan: CustomerPlan.extract(customer_id, **kwargs), **kwargs.slice(:balance, :sgx, :tndetails, *keys) ) end diff --git a/lib/registration.rb b/lib/registration.rb index 01e8820a06f662e3133d1384394f9a950bba8bcc..a592ba087b72dfe7ec261409030346dba1e2746b 100644 --- a/lib/registration.rb +++ b/lib/registration.rb @@ -217,7 +217,7 @@ class Registration end class CreditCard - Payment.kinds[:credit_card] = ->(*args) { self.for(*args) } + Payment.kinds[:credit_card] = ->(*args, **kw) { self.for(*args, **kw) } def self.for(customer, tel, finish: Finish, **) customer.payment_methods.then do |payment_methods|