Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7521655
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T02:17:20+00:00 2026-05-30T02:17:20+00:00

I’m trying to create a script to add items to my test ebay account.

  • 0

I’m trying to create a script to add items to my test ebay account. But I’ve hit a problem I’m not sure if I have the wrong file set? but it doesn’t seem to match up to the documentation (or I’m reading it wrong).

The file set I have is PHP Toolkit with 527 Support. There is also PHP Toolkit with 515 Support. Both from https://www.x.com/developers/ebay/php-accelerator-toolkit-ebay-trading-api-edition

I’ve found this great script through another question on stack overflow
https://github.com/iloveitaly/ebay-php/blob/master/eBayCommon.php

And I’ve been looking at the online help files here: http://developer.ebay.com/devzone/xml/docs/WebHelp/wwhelp/wwhimpl/js/html/wwhelp.htm

Here is the error I’m getting: PHP Fatal error: Class ‘ReturnPolicyType’ not found

The way I understand it is that there should be a file for each “Type” there is one for CategoryType and AmountType but no file for ReturnPolicyType. And no reference to it any any of the files I have.. am I looking at this totally wrongly?

require_once '../EbatNs/EbatNs_ServiceProxy.php';
require_once '../EbatNs/EbatNs_Logger.php';
require_once '../EbatNs/VerifyAddItemRequestType.php';
require_once '../EbatNs/AddItemRequestType.php';
require_once '../EbatNs/ItemType.php';
    require_once '../EbatNs/ItemConditionCodeType.php';
    require_once '../EbatNs/GetMyeBaySellingRequestType.php';
    require_once '../EbatNs/GetMyeBaySellingResponseType.php';
    require_once '../EbatNs/GetItemRequestType.php';

$session = new EbatNs_Session('config/ebay.config.php');

$cs = new EbatNs_ServiceProxy($session);
$cs->_logger = new EbatNs_Logger();

$req = new VerifyAddItemRequestType();

$item = new ItemType();
$item->BuyItNowPrice;
$item->Description = 'test ��� � <b>Some bold text</b>';
$item->ListingDuration = 'Days_7';
$item->Title = '��� test-titel';
$item->Currency = 'EUR';
$item->ListingType = 'Chinese';
$item->Quantity = 1;
$item->StartPrice = new AmountType();
$item->StartPrice->setTypeValue('1.0');
$item->StartPrice->setTypeAttribute('currencyID', 'EUR');
$item->Country = 'GB';
$item->Location = '-- not given --';
$item->ConditionID = '1';
$item->PrimaryCategory = new CategoryType();
$item->PrimaryCategory->CategoryID = 11450;
    $returnPolicy = new ReturnPolicyType();
    $returnPolicy->setRefundOption($sellerConfig['refund']['option']);
    $returnPolicy->setRefund($sellerConfig['refund']['option']);
    $returnPolicy->setReturnsWithinOption($sellerConfig['refund']['within']);
    $returnPolicy->setReturnsWithin($sellerConfig['refund']['within']);
    $returnPolicy->setReturnsAcceptedOption($sellerConfig['refund']['returns']);
    $returnPolicy->setReturnsAccepted($sellerConfig['refund']['returns']);
    $returnPolicy->setDescription($sellerConfig['refund']['description']);
    $returnPolicy->setShippingCostPaidByOption($sellerConfig['refund']['paidby']);
    $returnPolicy->setShippingCostPaidBy($sellerConfig['refund']['paidby']);
    $item->ReturnPolicy = $returnPolicy;

$item->Site = 'UK';
    $item->ShipToLocations[]="Europe";
$item->PaymentMethods[] = 'PayPal';
$item->PayPalEmailAddress = 'paypal@intradesys.com';

$req->Item = $item;
$res = $cs->VerifyAddItem($req);

?>

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T02:17:22+00:00Added an answer on May 30, 2026 at 2:17 am

    You’re going to have to get a newer toolkit. ReturnPolicy was added 3 1/2 years ago in 581.

    Also, the lowest supported schema is now 629. I would recommend using as new of a toolkit as you can find. It looks like eBay hasn’t updated their PHP page in a while, so you should go directly to the toolkit developer website to see what they have there.

    Hope this helps!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Basically, what I'm trying to create is a page of div tags, each has
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
I have a French site that I want to parse, but am running into
I'm trying to create an if statement in PHP that prevents a single post
I am trying to loop through a bunch of documents I have to put
I am trying to understand how to use SyndicationItem to display feed which is
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have just tried to save a simple *.rtf file with some websites and
I want to count how many characters a certain string has in PHP, but
this is what i have right now Drawing an RSS feed into the php,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.