Skip to content

Instantly share code, notes, and snippets.

@braidn
Created September 24, 2014 19:24
Show Gist options
  • Save braidn/ae913b3e6eadf5c62221 to your computer and use it in GitHub Desktop.
Save braidn/ae913b3e6eadf5c62221 to your computer and use it in GitHub Desktop.
PermittedCheckout Params
[:email, :use_billing, :shipping_method_id, :coupon_code, :special_instructions, {:bill_address_attributes=>[:firstname, :lastname, :address1, :address2, :city, :country_id, :state_id, :zipcode, :phone, :state_name, :alternative_phone, :company, {:country=>[:iso, :name, :iso3, :iso_name], :state=>[:name, :abbr]}], :ship_address_attributes=>[:firstname, :lastname, :address1, :address2, :city, :country_id, :state_id, :zipcode, :phone, :state_name, :alternative_phone, :company, {:country=>[:iso, :name, :iso3, :iso_name], :state=>[:name, :abbr]}], :payments_attributes=>[:amount, :payment_method_id, :payment_method, {:source_attributes=>[:number, :month, :year, :expiry, :verification_value, :first_name, :last_name, :cc_type, :gateway_customer_profile_id, :gateway_payment_profile_id, :last_digits, :name, :encrypted_data]}], :shipments_attributes=>[:order, :special_instructions, :stock_location_id, :id, :tracking, :address, :inventory_units, :selected_shipping_rate_id]}]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment