Skip to main content
Published: August 11 2009, 4:45:00 PMUpdated: November 28 2020, 7:42:47 PM

What is the recommended way to determine payment methods available for a category on a site - GeteBayDetails or GetCategoryFeatures?

Please use GetCategoryFeatures to determine the available payment methods for a site or category. Do not use GeteBayDetails to determine the payment methods for a site. Send in the FeatureID as PaymentMethods to find out about the payment methods that apply for the site. Below is a sample request and response.

 <?xml version="1.0" encoding="utf-8"?>
<GetCategoryFeaturesRequest xmlns="urn:ebay:apis:eBLBaseComponents">
  <ViewAllNodes>true</ViewAllNodes>
  <DetailLevel>ReturnAll</DetailLevel>
  <RequesterCredentials>
    <eBayAuthToken>YourToken</eBayAuthToken>
  </RequesterCredentials>
  <CategoryID>63889</CategoryID>
  <FeatureID>PaymentMethods</FeatureID>
</GetCategoryFeaturesRequest>

-----------------------------------------------------------
 
  <?xml version="1.0" encoding="UTF-8" ?>
- <GetCategoryFeaturesResponse xmlns="urn:ebay:apis:eBLBaseComponents">
  <Timestamp>2009-08-11T23:35:50.921Z</Timestamp>
  <Ack>Success</Ack>
  <Version>629</Version>
  <Build>E629_CORE_BUNDLED_9821326_R1</Build>
  <CategoryVersion>2439</CategoryVersion>
  <UpdateTime>2009-08-11T09:49:51.000Z</UpdateTime>
- <SiteDefaults>
  <PaymentMethod>PayPal</PaymentMethod>
  <PaymentMethod>Paymate</PaymentMethod>
  <PaymentMethod>ProPay</PaymentMethod>
  <PaymentMethod>Moneybookers</PaymentMethod>
  <PaymentMethod>VisaMC</PaymentMethod>
  <PaymentMethod>Discover</PaymentMethod>
  <PaymentMethod>AmEx</PaymentMethod>
  <PaymentMethod>IntegratedMerchantCreditCard</PaymentMethod>
  <PaymentMethod>CashOnPickup</PaymentMethod>
  </SiteDefaults>
- <FeatureDefinitions>
  <PaymentMethod />
  </FeatureDefinitions>
  </GetCategoryFeaturesResponse>

 

The acceptable payment methods are returned under the SiteDefaults container. When you set a CategoryID value, eBay returns the settings for that category. Note that the settings returned are only those settings that override the defaults for the site.

In the example above the settings for the category match the default settings for the FeatureID and therefore the CategoryID container is not returned in the response.

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