M lib/customer.rb => lib/customer.rb +1 -1
@@ 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
M lib/registration.rb => lib/registration.rb +1 -1
@@ 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|