cancel
Showing results for 
Search instead for 
Did you mean: 

"Freight amount Invalid" when adding description

Hi,

 

I have been trying to set the shipping description for the Accept Hosted page on the php API call for hours, and I do not think it is possible without getting the above error.  I am well within 255 characters. I have tried an 8 character string and still get this error. 

 

My code works fine without the description set. Can someone advise if there is a fix? 

 

this doesn't work, ever:

 

$shippingCost = new AnetAPI\ExtendedAmountType();
$shippingCost->setAmount($shippingCharges);
$shippingCost->setDescription($shippingMessage);

 

 

this works every time:

 

$shippingCost = new AnetAPI\ExtendedAmountType();
$shippingCost->setAmount($shippingCharges);

 

 

Renaissance
All Star
0 REPLIES 0