Change summary
lib/customer.rb | 2 +-
lib/registration.rb | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
Detailed changes
@@ -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
@@ -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|