rajesh.rajsrv-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
2013-Dec-10 12:12 UTC
Fedex plugin Rails Issue.
I working on an existing code base for a client. The app is built in rails 2.3 and uses the fedex plugin. Now i have develop a functionality for shipping the goods using *international priority* service type, the problem i''m facing is when ever i make a call to the fedex api for a shipping label it returns an error "Fedex::FedexError: Unable to get label from Fedex: Customs Value is required" Can some one help me how to mention the customs value for the label. This is how my code is: price, labels, tracking_number = fedex.label( :shipper => { :contact => shipper, :address => origin }, :recipient => { :contact => recipient, :address => destination.merge(:residential => false) }, :service_type => service_type, :packages => [{:length => 3, :height => 4, :width => 5, :weight => 5, }], :weight => 5, :commodities => commodities, :customs_value =>{:currency => "USD", :amount => "100" }, :residential => is_residential_destination) Thanks In Advance. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/773f7f5c-973d-467d-9da7-c4310896d42f%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Seemingly Similar Threads
- hackish error handling
- can Samba 2.2 join Windows 2003 R2 DC?
- [ win32utils-Bugs-13560 ] Service dependencies has wierd string.
- [ win32utils-Support Requests-11344 ] Can''t user win32-service inside of a Rails application
- [ win32utils-Support Requests-11344 ] Can''t user win32-service inside of a Rails application