lib/active_merchant/billing/gateways/paymentez.rb in activemerchant-1.86.0 vs lib/active_merchant/billing/gateways/paymentez.rb in activemerchant-1.87.0
- old
+ new
@@ -132,9 +132,12 @@
post[:user] ||= {}
post[:user][:id] = options[:user_id]
post[:user][:email] = options[:email]
post[:user][:ip_address] = options[:ip] if options[:ip]
post[:user][:fiscal_number] = options[:fiscal_number] if options[:fiscal_number]
+ if phone = options[:phone] || options.dig(:billing_address, :phone)
+ post[:user][:phone] = phone
+ end
end
def add_invoice(post, money, options)
post[:session_id] = options[:session_id] if options[:session_id]