lib/active_merchant/billing/gateways/ebanx.rb in activemerchant-1.86.0 vs lib/active_merchant/billing/gateways/ebanx.rb in activemerchant-1.87.0

- old
+ new

@@ -145,10 +145,10 @@ post[:payment][:birth_date] = options[:birth_date] if options[:birth_date] end def add_customer_responsible_person(post, payment, options) post[:payment][:person_type] = options[:person_type] if options[:person_type] - if options[:person_type] && options[:person_type].downcase == 'business' + if options[:person_type]&.casecmp('business')&.zero? post[:payment][:responsible] = {} post[:payment][:responsible][:name] = options[:responsible_name] if options[:responsible_name] post[:payment][:responsible][:document] = options[:responsible_document] if options[:responsible_document] post[:payment][:responsible][:birth_date] = options[:responsible_birth_date] if options[:responsible_birth_date] end