<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Fatal error: Class 'Goetas\Xsd\XsdToPhp\Jms\Handler\BaseTypesHandler' not found in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Fatal-error-Class-Goetas-Xsd-XsdToPhp-Jms-Handler/m-p/54972#M29923</link>
    <description>&lt;P&gt;I finally got this resolved.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I had overlooked is that you must install authorize.net php SDK exactly as it is stated on the github page. And dont forget the goetas serializer repository.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;THEN replace the goetas xsd2php and xsd-reader lines in your composer.json file and the authorize.net composer file. Run a composer update and it should work.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My problem was that I had too many versions of stuff hanging out. I finally removed everything and started over. I was just putting the new goetas lines in the composer.json files and trying to do a composer install. You have to do original install, then update with new lines.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks all,&lt;/P&gt;&lt;P&gt;-Kaleb&lt;/P&gt;</description>
    <pubDate>Sun, 19 Jun 2016 14:46:19 GMT</pubDate>
    <dc:creator>KalebClark</dc:creator>
    <dc:date>2016-06-19T14:46:19Z</dc:date>
    <item>
      <title>Fatal error: Class 'Goetas\Xsd\XsdToPhp\Jms\Handler\BaseTypesHandler' not found</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Fatal-error-Class-Goetas-Xsd-XsdToPhp-Jms-Handler/m-p/54698#M29661</link>
      <description>&lt;P&gt;Here is the situation:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to build a custom report with the API for my client. &amp;nbsp;I do not have SSH access, so I'm trying to load the SDK over FTP. &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Initially I tried just loading the SDK files from github, but could not get that to work. &amp;nbsp;Finally, I loaded composer on a different server, installed the SDK with composer, copied down the 'vendor' directory and loaded that into my project.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now, I get this error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Fatal error: Class 'Goetas\Xsd\XsdToPhp\Jms\Handler\BaseTypesHandler' not found in /path/to/project/vendor/authorizenet/authorizenet/lib/net/authorize/api/controller/base/ApiOperationBase.php on line 79&lt;/PRE&gt;&lt;P&gt;According to recordnotfound.com, there was an open issue for this exact problem but&amp;nbsp;&lt;A title="recordnotfound.com" href="https://recordnotfound.com/sdk-php-AuthorizeNet-21595/issues" target="_blank"&gt;it has been closed&lt;/A&gt;. &amp;nbsp;However, I can't find anything on how the issue was resolved.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;EDIT: &amp;nbsp;Found the closed ticket on github. &amp;nbsp;&lt;A title="github" href="https://github.com/AuthorizeNet/sdk-php/issues/102" target="_blank"&gt;LINK&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Just for fun, here is the code I'm trying to run:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&amp;lt;?php
error_reporting(-1); ini_set('display_errors', 'On');
date_default_timezone_set('America/Chicago');

require 'vendor/autoload.php';
use net\authorize\api\contract\v1 as AnetAPI;
use net\authorize\api\controller as AnetController; 

$start_datetime 	= "";
$end_datetime 		= "";
$start 			= '2016-05-01 00:00:00';
$end 			= '2016-05-31 00:00:00';

function create_authnet_timestamp($userdate){
	$stamp 		= strtotime($userdate);
	$date 		= date("Y-m-d", $stamp);
	$time 		= date("H:i:s", $stamp);
	$datetime 	= $date."T".$time."Z";
	return $datetime;
}

if($start != '' &amp;amp;&amp;amp; $start != NULL &amp;amp;&amp;amp; is_real_date($start) ){ 
	$start_datetime = create_authnet_timestamp($start);
}

if($end != '' 	&amp;amp;&amp;amp; $end != NULL   &amp;amp;&amp;amp; is_real_date($end) ){ 
	$end_datetime 	= create_authnet_timestamp($end);
}

function getSettledBatchList($startDate, $endDate) {
	$api_id 	= "MY_API_ID";
	$account_key 	= "MY_TRANSACTION_ID";
	$batch_array 	= array();
	$start_dt 	= new DateTime($startDate);
	$end_dt 	= new DateTime($endDate);

	$merchAuth 	= new AnetAPI\MerchantAuthenticationType();
	$merchAuth-&amp;gt;setName($api_id);
	$merchAuth-&amp;gt;setTransactionKey($account_key);

	$request	= new AnetAPI\GetSettledBatchListRequest();
	$request-&amp;gt;setMerchantAuthentication($merchAuth);
	$request-&amp;gt;setIncludeStatistics(true);
	$request-&amp;gt;setFirstSettlementDate($start_dt);
	$request-&amp;gt;setLastSettlementDate($end_dt);

	$controller 	= new AnetController\GetSettledBatchListController($request);
	$response 	= $controller-&amp;gt;executeWithApiResponse( \net\authorize\api\constants\ANetEnvironment::SANDBOX);

	if(($response != null) &amp;amp;&amp;amp; ($response-&amp;gt;getMessages()-&amp;gt;getResultCode() == "Ok")){
		return $response;
	}else{
	    $errorMessages = $response-&amp;gt;getMessages()-&amp;gt;getMessage();
	    echo "Response : " . $errorMessages[0]-&amp;gt;getCode() . "  " .$errorMessages[0]-&amp;gt;getText() . "\n";
	    return false;
	}
}
$api_response 		= getSettledBatchList($start_datetime, $end_datetime);
var_dump($api_response); 

?&amp;gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm starting to pull my hair out a little. &amp;nbsp;Can anyone help?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 22 May 2016 21:00:17 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Fatal-error-Class-Goetas-Xsd-XsdToPhp-Jms-Handler/m-p/54698#M29661</guid>
      <dc:creator>phpjayhawk</dc:creator>
      <dc:date>2016-05-22T21:00:17Z</dc:date>
    </item>
    <item>
      <title>Re: Fatal error: Class 'Goetas\Xsd\XsdToPhp\Jms\Handler\BaseTypesHandler' not found</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Fatal-error-Class-Goetas-Xsd-XsdToPhp-Jms-Handler/m-p/54707#M29670</link>
      <description>&lt;P&gt;Same for me.&amp;nbsp;I followed the steps judiciously, use composer, update with no errors but then "PHP Fatal error: &amp;nbsp;Class 'Goetas\Xsd\XsdToPhp\Jms\Handler\BaseTypesHandler' not found in /var/www/html... /lib/net/authorize/api/controller/base/ApiOperationBase.php on line 82 ", somebody have any clue how to address this.?&lt;/P&gt;</description>
      <pubDate>Mon, 23 May 2016 20:10:06 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Fatal-error-Class-Goetas-Xsd-XsdToPhp-Jms-Handler/m-p/54707#M29670</guid>
      <dc:creator>arnaldof</dc:creator>
      <dc:date>2016-05-23T20:10:06Z</dc:date>
    </item>
    <item>
      <title>Re: Fatal error: Class 'Goetas\Xsd\XsdToPhp\Jms\Handler\BaseTypesHandler' not found</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Fatal-error-Class-Goetas-Xsd-XsdToPhp-Jms-Handler/m-p/54714#M29677</link>
      <description>&lt;P&gt;IF you look in the classmap&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt; 'Goetas\Xsd\XsdToPhp\Jms\Handler\BaseTypesHandler' =&amp;gt; $vendorDir . '/goetas/xsd2php/lib/Jms/Handler/BaseTypesHandler.php',
   39      'Goetas\Xsd\XsdToPhp\Jms\Handler\XmlSchemaDateHandler' =&amp;gt; $vendorDir . '/goetas/xsd2php/lib/Jms/Handler/XmlSchemaDateHandler.php',&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There's files missing from&amp;nbsp;goetas/xsd2php package.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried googling the missing files and couldn't find it...&lt;/P&gt;</description>
      <pubDate>Tue, 24 May 2016 14:52:03 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Fatal-error-Class-Goetas-Xsd-XsdToPhp-Jms-Handler/m-p/54714#M29677</guid>
      <dc:creator>airsandbox1</dc:creator>
      <dc:date>2016-05-24T14:52:03Z</dc:date>
    </item>
    <item>
      <title>Re: Fatal error: Class 'Goetas\Xsd\XsdToPhp\Jms\Handler\BaseTypesHandler' not found</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Fatal-error-Class-Goetas-Xsd-XsdToPhp-Jms-Handler/m-p/54741#M29701</link>
      <description>&lt;P&gt;I've just begun work on converting to this API, and I am also stymied by this error.&lt;/P&gt;</description>
      <pubDate>Thu, 26 May 2016 16:48:12 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Fatal-error-Class-Goetas-Xsd-XsdToPhp-Jms-Handler/m-p/54741#M29701</guid>
      <dc:creator>Fiala1904</dc:creator>
      <dc:date>2016-05-26T16:48:12Z</dc:date>
    </item>
    <item>
      <title>Re: Fatal error: Class 'Goetas\Xsd\XsdToPhp\Jms\Handler\BaseTypesHandler' not found</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Fatal-error-Class-Goetas-Xsd-XsdToPhp-Jms-Handler/m-p/54759#M29718</link>
      <description>&lt;P&gt;Hey Everybody, in case you missed it, there has been a patch to the composer.json released that solves this issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/AuthorizeNet/sdk-php/commit/d63a785803647e4d137a56cecb7c150e15c32fef" target="_blank"&gt;Link To Github Commit&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So update your composer.json with the new lines, run "composer update" and you're good to go.&lt;/P&gt;</description>
      <pubDate>Sun, 29 May 2016 14:05:11 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Fatal-error-Class-Goetas-Xsd-XsdToPhp-Jms-Handler/m-p/54759#M29718</guid>
      <dc:creator>phpjayhawk</dc:creator>
      <dc:date>2016-05-29T14:05:11Z</dc:date>
    </item>
    <item>
      <title>Re: Fatal error: Class 'Goetas\Xsd\XsdToPhp\Jms\Handler\BaseTypesHandler' not found</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Fatal-error-Class-Goetas-Xsd-XsdToPhp-Jms-Handler/m-p/54929#M29881</link>
      <description>&lt;P&gt;I followed these intstructions but it did not fix the problem for me. I also attempted to delete the goetas/xsd2php folder and re-run update and it did not pull in the needed files. Is there a special setting in composer that I need to have to get this to work? Or any other suggestions? This is pretty critical to a project I am working on. I hope the developers at Authorize.Net will fix this ASAP.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jun 2016 13:36:54 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Fatal-error-Class-Goetas-Xsd-XsdToPhp-Jms-Handler/m-p/54929#M29881</guid>
      <dc:creator>BVBAccelerate</dc:creator>
      <dc:date>2016-06-15T13:36:54Z</dc:date>
    </item>
    <item>
      <title>Re: Fatal error: Class 'Goetas\Xsd\XsdToPhp\Jms\Handler\BaseTypesHandler' not found</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Fatal-error-Class-Goetas-Xsd-XsdToPhp-Jms-Handler/m-p/54930#M29882</link>
      <description>&lt;P&gt;Hey BVB,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you post the contents of your composer.json file? &amp;nbsp;I'm guessing that's where the issue is. &amp;nbsp;That was where my problem was.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jun 2016 13:40:57 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Fatal-error-Class-Goetas-Xsd-XsdToPhp-Jms-Handler/m-p/54930#M29882</guid>
      <dc:creator>phpjayhawk</dc:creator>
      <dc:date>2016-06-15T13:40:57Z</dc:date>
    </item>
    <item>
      <title>Re: Fatal error: Class 'Goetas\Xsd\XsdToPhp\Jms\Handler\BaseTypesHandler' not found</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Fatal-error-Class-Goetas-Xsd-XsdToPhp-Jms-Handler/m-p/54931#M29883</link>
      <description>&lt;P&gt;I was able to fix this. I made a mistake when trying to fix this I attempted to edit the authorizenet package's composer.json file. Part of the instructions for installing this package (&lt;A href="https://github.com/AuthorizeNet/sdk-php)" target="_blank"&gt;https://github.com/AuthorizeNet/sdk-php)&lt;/A&gt; are to put that line in the composer.json file of your app. So, essentially that line is in two spots if you did it the way I did - in your own composer.json and the authorizenet package's composer.json. This worked for me after I updated the referenced line in both composer.json files.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jun 2016 13:45:49 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Fatal-error-Class-Goetas-Xsd-XsdToPhp-Jms-Handler/m-p/54931#M29883</guid>
      <dc:creator>BVBAccelerate</dc:creator>
      <dc:date>2016-06-15T13:45:49Z</dc:date>
    </item>
    <item>
      <title>Re: Fatal error: Class 'Goetas\Xsd\XsdToPhp\Jms\Handler\BaseTypesHandler' not found</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Fatal-error-Class-Goetas-Xsd-XsdToPhp-Jms-Handler/m-p/54932#M29884</link>
      <description>&lt;P&gt;Thanks for the quick response phpjayhawk! Also, in my post above that link does not work because it attempted to include the ) at the end of the URL. Here is a working link: &lt;A href="https://github.com/AuthorizeNet/sdk-php" target="_blank"&gt;https://github.com/AuthorizeNet/sdk-php&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jun 2016 13:48:27 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Fatal-error-Class-Goetas-Xsd-XsdToPhp-Jms-Handler/m-p/54932#M29884</guid>
      <dc:creator>BVBAccelerate</dc:creator>
      <dc:date>2016-06-15T13:48:27Z</dc:date>
    </item>
    <item>
      <title>Re: Fatal error: Class 'Goetas\Xsd\XsdToPhp\Jms\Handler\BaseTypesHandler' not found</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Fatal-error-Class-Goetas-Xsd-XsdToPhp-Jms-Handler/m-p/54933#M29885</link>
      <description>&lt;P&gt;No problem at all. &amp;nbsp;Glad you got it worked out!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jun 2016 13:51:09 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Fatal-error-Class-Goetas-Xsd-XsdToPhp-Jms-Handler/m-p/54933#M29885</guid>
      <dc:creator>phpjayhawk</dc:creator>
      <dc:date>2016-06-15T13:51:09Z</dc:date>
    </item>
    <item>
      <title>Re: Fatal error: Class 'Goetas\Xsd\XsdToPhp\Jms\Handler\BaseTypesHandler' not found</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Fatal-error-Class-Goetas-Xsd-XsdToPhp-Jms-Handler/m-p/54971#M29922</link>
      <description>&lt;P&gt;I am having this same problem and have tried many different combos.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Phpjayhawk, your post is as close to a complete description as I have seen to get this to work. I have put the lines from the temporary commit in both my composer.json and the authorize.net composer.json but I am still getting a failure with:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"The requested package jms/serializer xsd2php-dev as 0.18.0 exists as jms/serializer[0.11.0, 0.12.0, 0.13.0, 0.14.0, 0.15.0, 0.16.0, 1.0.0, 1.1.0, dev-master, 1.1.x-dev] but these are rejected by your constraint."&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you post both your composer.json files please? I must be doing something wrong.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;-Kaleb Clark&lt;/P&gt;</description>
      <pubDate>Fri, 17 Jun 2016 23:43:56 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Fatal-error-Class-Goetas-Xsd-XsdToPhp-Jms-Handler/m-p/54971#M29922</guid>
      <dc:creator>KalebClark</dc:creator>
      <dc:date>2016-06-17T23:43:56Z</dc:date>
    </item>
    <item>
      <title>Re: Fatal error: Class 'Goetas\Xsd\XsdToPhp\Jms\Handler\BaseTypesHandler' not found</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Fatal-error-Class-Goetas-Xsd-XsdToPhp-Jms-Handler/m-p/54972#M29923</link>
      <description>&lt;P&gt;I finally got this resolved.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I had overlooked is that you must install authorize.net php SDK exactly as it is stated on the github page. And dont forget the goetas serializer repository.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;THEN replace the goetas xsd2php and xsd-reader lines in your composer.json file and the authorize.net composer file. Run a composer update and it should work.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My problem was that I had too many versions of stuff hanging out. I finally removed everything and started over. I was just putting the new goetas lines in the composer.json files and trying to do a composer install. You have to do original install, then update with new lines.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks all,&lt;/P&gt;&lt;P&gt;-Kaleb&lt;/P&gt;</description>
      <pubDate>Sun, 19 Jun 2016 14:46:19 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Fatal-error-Class-Goetas-Xsd-XsdToPhp-Jms-Handler/m-p/54972#M29923</guid>
      <dc:creator>KalebClark</dc:creator>
      <dc:date>2016-06-19T14:46:19Z</dc:date>
    </item>
  </channel>
</rss>

