我正试图从联邦快递获得航运率与active_shipping宝石:
packages = [
Package.new(
100, # 100 grams
[93,10], # 93 cm long, 10 cm diameter
:cylinder => true), # cylinders have different volume calculations
Package.new(
(7.5 * 16), # 7.5 lbs, times 16 oz/lb.
[15, 10, 4.5], # 15x10x4.5 inches
:units => :imperial
) # not grams, not centimetres
]
origin = Location.new(
:country => 'US',
:state => 'CA',
:city => 'Beverly Hills',
:zip => '90210'
)
destination = Location.new(
:country => 'CA',
:province => 'ON',
:city => 'Ottawa',
:postal_code => 'K1P 1J1'
)
options = {
:login => '***',
:password => '***',
:key => '***',
:account => '***',
:meter => '***',
:test => true
}
fedex = FedEx.new(options)
rates = fedex.find_rates(origin, destination, packages)
803错误提示:
错误- 803: Jmeter 编号缺失或无效。
如何解决这个问题?
1条答案
按热度按时间6l7fqoea1#
您是否传递了有效凭据?
在FedEx Dev站点设置凭证时,将提供测试凭证和生产凭证。请确保您使用正确的测试仪编号。