Need help with small PHP XML API problem fast! Please help! Can eventually pay!
Hello,
I'm currently using this page to get information about the buyers email, Ebay status and the Ebay transaction ID of a transaction at Ebay. The problem is that I also need to get some more information from the XML reply, but I don't know how to do it.
Here is the page:
PHP Code:
<?php
if ($_POST['itemid'] == ""){
print "<form name='form1' method='post' action='GetItemTransactionss.php'>";
print "<input name='itemid' type='text' id='itemid'>";
print "<input name='userid' type='text' id='userid'>";
print "<input type='submit' name='Submit0' value='Post'>";
}
else {
include('functions.php');
include('variables.php');
error_reporting(E_ALL);
ini_set('display_errors', '1');
//SiteID must also be set in the Request's XML
//SiteID = 0 (US) - UK = 3, Canada = 2, Australia = 15, ....
//SiteID Indicates the eBay site to associate the call with
$siteID = 0;
//the call being made:
$verb = 'GetItemTransactions';
//Regulates versioning of the XML interface for the API
$compatabilityLevel = 433;
//get an array of strings containing the required headers
$headers = buildEbayHeaders($devID, $appID, $certID, $compatabilityLevel, $siteID, $verb);
// Time from and time to
$time_from = date('Y-m-d\TH:i:s',strtotime("-28 days")).'.799Z';
$time_to = date('Y-m-d\TH:i:s',strtotime("+1 days")).'.799Z';
I need to be able to get information from different places of the transaction part of the XML reponse, not just from "buyer" as for example I need to get <ExternalTransactionID> from <ExternalTransaction> and the <PaidTime> and similar from that <transaction> with that <UserID> . So I can be able to use the different levels, as for example to get TransactionArray.Transaction.Buyer.BuyerInfo.Shipp ingAddress.Name for that user and transaction.
I've tried for several hours now to get this to work, so please, help me! If you PM your Paypal email I'll also leave compensation for your time if it works - I really need this to work.