Hi guys:
I''m using gem shipping for my project,i wanna select UPS delivery
package service, but it doesn''t work for me whatever value i send to
UPS
api.
the following is some code i used.
UPS_SERVICE = {
''UPS Next Day Air'' => ''01'',
''UPS Second Day Air'' => ''02'',
''UPS Ground'' => ''03'',
''UPS Next Day AirĀ® Early A.M. SM'' =>
''14''
}
shipping_params = {
:zip => customer.shipping_zip,
:state => customer.shipping_state_province,
:sender_zip => SystemSetting.named(''Shipping
Zip''),
:sender_state => SystemSetting.named(''Shipping
State''),
:weight => items_weight,
:code => session[:code] || "03", # default UPS
service: UPS Ground
:prefs => "#{RAILS_ROOT}/config/shipping.yml"
}
any guys have any good idea?
thanks.
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---