0

我启用了 USPS 的运输报价,并打开了调试信息,以便我可以接收请求/响应信息:

API=RateV3&XML=
<RateV3Request USERID="(Hidden)">
<Package ID="0">
    <Service>ALL</Service>
    <ZipOrigination>90038</ZipOrigination>
    <ZipDestination>90024</ZipDestination>
    <Pounds>1</Pounds>
    <Ounces>0.0</Ounces>
    <Container>RECTANGULAR</Container>
    <Size>REGULAR</Size>
    <Machinable>False</Machinable>
</Package>
</RateV3Request>

<?xml version="1.0"?>
<RateV3Response>
    <Package ID="0">
        <ZipOrigination>90038</ZipOrigination>
        <ZipDestination>90024</ZipDestination>
        <Pounds>1</Pounds>
        <Ounces>0.0</Ounces>
        <Size>REGULAR</Size>
        <Machinable>FALSE</Machinable>
        <Zone>1</Zone>
        <Postage CLASSID="23">
            <MailService>Express Mail Sunday/Holiday Guarantee</MailService>
            <Rate>27.50</Rate>
        </Postage>
        <Postage CLASSID="25">
            <MailService>Express Mail Flat-Rate Envelope Sunday/Holiday Guarantee</MailService>
            <Rate>30.00</Rate>
        </Postage>
        <Postage CLASSID="2">
            <MailService>Express Mail Hold For Pickup</MailService>
            <Rate>15.00</Rate>
        </Postage>
        <Postage CLASSID="27">
            <MailService>Express Mail Flat-Rate Envelope Hold For Pickup</MailService>
            <Rate>17.50</Rate>
        </Postage>
        <Postage CLASSID="3">
            <MailService>Express Mail</MailService>
            <Rate>15.00</Rate>
        </Postage>
        <Postage CLASSID="13">
            <MailService>Express Mail Flat-Rate Envelope</MailService>
            <Rate>17.50</Rate>
        </Postage>
        <Postage CLASSID="1">
            <MailService>Priority Mail</MailService>
            <Rate>4.95</Rate>
        </Postage>
        <Postage CLASSID="16">
            <MailService>Priority Mail Flat-Rate Envelope</MailService>
            <Rate>4.95</Rate>
        </Postage>
        <Postage CLASSID="28">
            <MailService>Priority Mail Small Flat-Rate Box</MailService>
            <Rate>4.95</Rate>
        </Postage>
        <Postage CLASSID="17">
            <MailService>Priority Mail Regular/Medium Flat-Rate Boxes</MailService>
            <Rate>10.35</Rate>
        </Postage>
        <Postage CLASSID="22">
            <MailService>Priority Mail Large Flat-Rate Box</MailService>
            <Rate>13.95</Rate>
        </Postage>
        <Postage CLASSID="4">
            <MailService>Parcel Post</MailService>
            <Rate>4.90</Rate>
        </Postage>
        <Postage CLASSID="5">
            <MailService>Bound Printed Matter</MailService>
            <Rate>2.33</Rate>
        </Postage>
        <Postage CLASSID="6">
            <MailService>Media Mail</MailService>
            <Rate>2.38</Rate>
        </Postage>
        <Postage CLASSID="7">
            <MailService>Library Mail</MailService>
            <Rate>2.26</Rate>
        </Postage>
    </Package>
</RateV3Response>

看起来响应很好,但在要求计算后我的页面上没有得到实际的运费报价。相反,我收到错误“获取运输报价时出现问题。请验证交货和产品信息,然后重试。如果这不能解决问题,请致电完成您的订单。”

如果有人有任何信息为什么它仍然会显示错误,我将不胜感激。

4

1 回答 1

0

你找到解决办法了吗?我得到了类似的回复,我可以通过选择不同的运输选项来清除它。似乎在 usps 运输模块中,First Class Mail Parcel 和 First Class Mail Flat 选项设置为与运费不对应的值。

这是在 Drupal 6 站点上。

于 2010-02-09T02:49:44.770 回答