Skip to main content
Published: August 11 2009, 4:45:00 PMUpdated: September 07 2022, 2:44:56 AM

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">
  <RequesterCredentials>
    <eBayAuthToken>ABC.....</eBayAuthToken>
  </RequesterCredentials>
  <ViewAllNodes>true</ViewAllNodes>
  <DetailLevel>ReturnAll</DetailLevel>
    <CategoryID>10810</CategoryID>
  <FeatureID>PaymentMethods</FeatureID>
</GetCategoryFeaturesRequest>

-----------------------------------------------------------
 
  <?xml version="1.0" encoding="UTF-8"?>
<GetCategoryFeaturesResponse 
  xmlns="urn:ebay:apis:eBLBaseComponents">
  <Timestamp>2022-09-07T09:35:30.972Z</Timestamp>
  <Ack>Success</Ack>
  <Version>1219</Version>
  <Build>E1219_CORE_APICATALOG_19146446_R1</Build>
  <CategoryVersion>9800</CategoryVersion>
  <UpdateTime>2022-09-07T09:30:16.000Z</UpdateTime>
  <SiteDefaults>
    <PaymentMethod>PayPal</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.

 https://developer.ebay.com/DevZone/XML/docs/Reference/eBay/GetCategoryFeatures.html 

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