Fix for ruby3

Stephen Paul Weber created

Change summary

lib/customer.rb     | 2 +-
lib/registration.rb | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)

Detailed changes

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

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|