class OffsitePayments::Integrations::AuthorizeNetSim::Helper
def billing_address(options)
Set the billing address. Call like service.billing_address {:city =>
def billing_address(options) for setting in [:city, :state, :zip, :country, :po_num] do add_field 'x_' + setting.to_s, options[setting] end raise 'must use address1 and address2' if options[:address] add_field 'x_address', (options[:address1].to_s + ' ' + options[:address2].to_s).strip end