Skip to main content
Published: June 15 2006, 12:00:00 AMUpdated: August 25 2022, 1:15:46 AM

Some of the PaymentMethods that I had in my AddItem call are not showing up on the listing's ViewItem page.
PaymentMethods are getting dropped from my listing.
Why is this happening?

This is a VERY important rule to remember:
Repeating elements must occur in a single contiguous block

This means there should never be other elements in between 2 instances of a repeating element (by the term "repeating element" we are referring to any element in the WSDL documentation that has [0..*] or any value in place of * that is greater than 1)

In the case of PaymentMethods, please make sure that if you have PayPal as one of your PaymentMethods, then your <PayPalEmailAddress> element is not in between any 2 PaymentMethods. <PayPalEmailAddress> must be either before all PaymentMethods, or after all PaymentMethods.

If you are using either the Java SDK or the .NET SDK, all PaymentMethods will automatically be serialized correctly.
Here are some examples of good and bad XML in an Item container

Good (note that all PaymentMethods are contiguous and that PayPalEmailAddress is at the end and not in the middle):
<Item>
...
  <PaymentMethods>MOCC</PaymentMethods>
  <PaymentMethods>AmEx</PaymentMethods>
  <PaymentMethods>PersonalCheck</PaymentMethods>
  <PaymentMethods>VisaMC</PaymentMethods>
  <PaymentMethods>PaymentSeeDescription</PaymentMethods>
  <PaymentMethods>Discover</PaymentMethods>
  <PaymentMethods>PayPal</PaymentMethods>
  <PayPalEmailAddress>my@paypal.com</PayPalEmailAddress>
...
</Item>

Bad (note that we have other elements in between the PaymentMethods desired, this will lead to a listing without some of these PaymentMethods):
<Item>
...
  <PaymentMethods>MOCC</PaymentMethods>
  <PaymentMethods>AmEx</PaymentMethods>
  <PaymentMethods>PersonalCheck</PaymentMethods>
...
  <Quantity>1</Quantity>
  <PaymentMethods>VisaMC</PaymentMethods>
  <PaymentMethods>PaymentSeeDescription</PaymentMethods>
  <PaymentMethods>Discover</PaymentMethods>
  <PaymentMethods>PayPal</PaymentMethods>
  <PayPalEmailAddress>my@paypal.com</PayPalEmailAddress>
...
</Item>

Bad (note that we have the PayPalEmailAddress element in between the PaymentMethods desired, this will lead to a listing without some of these PaymentMethods):
<Item>
...
  <PaymentMethods>MOCC</PaymentMethods>
  <PaymentMethods>AmEx</PaymentMethods>
  <PayPalEmailAddress>my@paypal.com</PayPalEmailAddress>
  <PaymentMethods>PayPal</PaymentMethods>
  <PaymentMethods>PersonalCheck</PaymentMethods>
  <PaymentMethods>VisaMC</PaymentMethods>
  <PaymentMethods>PaymentSeeDescription</PaymentMethods>
  <PaymentMethods>Discover</PaymentMethods>
...
</Item>

How well did this answer your question?
Answers others found helpful