lib/active_merchant/billing/gateways/monei.rb in activemerchant-1.126.0 vs lib/active_merchant/billing/gateways/monei.rb in activemerchant-1.129.0

- old
+ new

@@ -199,10 +199,11 @@ request[:paymentMethod][:card] = {} request[:paymentMethod][:card][:number] = payment_method.number request[:paymentMethod][:card][:expMonth] = format(payment_method.month, :two_digits) request[:paymentMethod][:card][:expYear] = format(payment_method.year, :two_digits) request[:paymentMethod][:card][:cvc] = payment_method.verification_value.to_s + request[:paymentMethod][:card][:cardholderName] = payment_method.name end end # Private: Add customer part to request def add_customer(request, payment_method, options) @@ -291,9 +292,10 @@ end def add_browser_info(request, options) request[:sessionDetails][:ip] = options[:ip] if options[:ip] request[:sessionDetails][:userAgent] = options[:user_agent] if options[:user_agent] + request[:sessionDetails][:lang] = options[:lang] if options[:lang] end # Private: Parse JSON response from Monei servers def parse(body) JSON.parse(body)