cancel
Showing results for 
Search instead for 
Did you mean: 

x_line_item= (270) line item 1 is invalid.

Hello-

    I am trying to follow the instructions I found online in terms of formatting with delimiters and am getting the above error with the following syntax.

 

$lineItem = "x_line_item=item1<|>home3<|>Basic (Reuse)<|>$29.99<|>Y&x_line_item=item2<|>4<|>New Basic<|>$49.99<|>Y&";

 

echo "<INPUT type='hidden' name='x_line_item' value='$lineItem' />";

 

All other fields work using PHP so am wondering what is wrong with my syntax or if I am even going about correctly. 

 

Thank you,

Josh

imyourjosh
Member
10 REPLIES 10

Hi thedoctor_21,

 

Can you post your actual code and the whole error you're receiving as well?

 

Thanks,

 

Michelle

Developer Community Manager