Hi,
We came across a small issue with AuthorizeNet API's when setting up the shipping address.
Here's the current code
public static nameAndAddressType CreateShipAddress(Order order)
{
return new nameAndAddressType
{
firstName = CropString(order.CustomerFirstName, 50),
lastName = CropString(order.CustomerName, 50),
company = CropString(order.CustomerCompany, 50),
address = CropString($"{order.CustomerHouseNumber} {order.CustomerAddress}".Trim(), 60),
city = CropString(order.CustomerCity, 40),
state = CropString(order.CustomerRegion, 40),
zip = CropString(order.CustomerZip, 20),
country = CropString(order.CustomerCountry, 60),
};
}
Instead it should be this
public static nameAndAddressType CreateShipAddress(Order order)
{
return new nameAndAddressType
{
firstName = CropString(order.DeliveryFirstName, 50),
lastName = CropString(order.DeliveryName, 50),
company = CropString(order.DeliveryCompany, 50),
address = CropString($"{order.DeliveryHouseNumber} {order.DeliveryAddress}".Trim(), 60),
city = CropString(order.DeliveryCity, 40),
state = CropString(order.DeliveryRegion, 40),
zip = CropString(order.DeliveryZip, 20),
country = CropString(order.DeliveryCountry, 60),
};
}
Can this be fixed on a future version?
Best Regards,
Nuno Aguiar