Developer forum

Forum » Ecommerce - Standard features » Shipping.FedEx - wrong validation on shipping address

Shipping.FedEx - wrong validation on shipping address

Mario Santos Dynamicweb Employee
Mario Santos
Reply

Hi,

The FedEx shipping provider is expecting both DeliveryAdress and DeliveryAddress2 filled in - it should only validate DeliveryAdress, or as another option do an OR clause. Although DeliveryAddress is the main field which should always be populated.

https://github.com/dynamicweb/Shipping.FedEx/blob/d7409e520b2211c16d6a5319b479fcf5197a44c4/src/Service/RateRequestCreationHelper.cs#L92

BR Mario


Replies

 
Mario Santos Dynamicweb Employee
Mario Santos
Reply

Also,

Alert.AlertType is set to bool but FedEx returns a string which cause conversion to break.

https://github.com/dynamicweb/Shipping.FedEx/blob/d7409e520b2211c16d6a5319b479fcf5197a44c4/src/Models/Alert.cs#L15


"output": {
    "alerts": [
      {
        "code": "HOMEDELIVERY.SATURDAYSERVICE.NOT.AVAILABLE",
        "message": "FedEx Home Delivery Saturday service is not available to destination zip code.",
        "alertType": "NOTE"
      },
      {
        "code": "HOMEDELIVERY.PREMIUMSERVICE.NOT.AVAILABLE",
        "message": "FedEx Home Delivery premium services are not available to this destination.",
        "alertType": "NOTE"
      }
    ],

 

You must be logged in to post in the forum