<?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: API Reference Charge A Card Sample Code Error in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/API-Reference-Charge-A-Card-Sample-Code-Error/m-p/53346#M28469</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.developer.cybersource.com/t5/user/viewprofilepage/user-id/19354"&gt;@awtech﻿&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you please provide the full error message? It will be really helpful in rectifying the issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, from the error I am guessing that your development environment is not setup completely. There are some dependencies that need to be installed locally before using sample codes. Look into&amp;nbsp;&lt;A href="https://github.com/AuthorizeNet/sdk-php/blob/master/README.md" target="_blank"&gt;https://github.com/AuthorizeNet/sdk-php/blob/master/README.md&lt;/A&gt; with installation instructions. You will need composer for installation of all dependencies.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope it helps.&lt;/P&gt;</description>
    <pubDate>Thu, 17 Dec 2015 11:14:40 GMT</pubDate>
    <dc:creator>srmisra</dc:creator>
    <dc:date>2015-12-17T11:14:40Z</dc:date>
    <item>
      <title>API Reference Charge A Card Sample Code Error</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/API-Reference-Charge-A-Card-Sample-Code-Error/m-p/53275#M28407</link>
      <description>&lt;P&gt;I'm trying to run the sample code for Charge A Card from the API Reference but am getting an Uncaught Exception error for JMS\Serializer\Exception\RuntimeException.&amp;nbsp; The long error message ends with "&lt;STRONG&gt;YamlDriver.php&lt;/STRONG&gt; on line &lt;STRONG&gt;38".&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've played around with it and have found that it's the CustomerDataType that is causing the problem.&amp;nbsp; If I remove the lines of code for setId and setEmail then it works fine.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Has anyone else seen this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Dec 2015 08:05:40 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/API-Reference-Charge-A-Card-Sample-Code-Error/m-p/53275#M28407</guid>
      <dc:creator>awtech</dc:creator>
      <dc:date>2015-12-09T08:05:40Z</dc:date>
    </item>
    <item>
      <title>Re: API Reference Charge A Card Sample Code Error</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/API-Reference-Charge-A-Card-Sample-Code-Error/m-p/53346#M28469</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.developer.cybersource.com/t5/user/viewprofilepage/user-id/19354"&gt;@awtech﻿&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you please provide the full error message? It will be really helpful in rectifying the issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, from the error I am guessing that your development environment is not setup completely. There are some dependencies that need to be installed locally before using sample codes. Look into&amp;nbsp;&lt;A href="https://github.com/AuthorizeNet/sdk-php/blob/master/README.md" target="_blank"&gt;https://github.com/AuthorizeNet/sdk-php/blob/master/README.md&lt;/A&gt; with installation instructions. You will need composer for installation of all dependencies.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope it helps.&lt;/P&gt;</description>
      <pubDate>Thu, 17 Dec 2015 11:14:40 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/API-Reference-Charge-A-Card-Sample-Code-Error/m-p/53346#M28469</guid>
      <dc:creator>srmisra</dc:creator>
      <dc:date>2015-12-17T11:14:40Z</dc:date>
    </item>
    <item>
      <title>Re: API Reference Charge A Card Sample Code Error</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/API-Reference-Charge-A-Card-Sample-Code-Error/m-p/53354#M28477</link>
      <description>&lt;P&gt;Thanks for the reply.&amp;nbsp; Yes, I did run the composer.json file in order to pull in the over 2,000 dependency files - otherwise none of the example code would run.&amp;nbsp; I have to say that I'm surprised that Authorize.net requires all this 3rd party cody for something a security related as processing credit cards.&amp;nbsp; Seems a big risk to be pulling in that many 3rd party files that they have no control over... and is all that really necessary to just process some credit cards?&amp;nbsp; Seems like a bunch of overkill to me and it's been a really frustrating process trying to work with this API.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In any case, the problem is when I run the sample code I have to comment out 3 lines of code for setting the customerID.&amp;nbsp; It runs fine with these 3 lines commented out, but if they're left in, it throws the error below.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;$customer = new AnetAPI\CustomerDataType();&lt;BR /&gt;$customer-&amp;gt;setId("101");&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;$transactionRequestType-&amp;gt;setCustomer($customer);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Error displayed:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;Fatal error&lt;/STRONG&gt;: Uncaught exception 'JMS\Serializer\Exception\RuntimeException' with message 'Expected metadata for class net\authorize\api\contract\v1\CustomerDataType to be defined in /home/awtechho/public_html/helios/chase/lib/net/authorize/api/controller/base/../../yml/v1/CustomerDataType.yml.' in /home/awtechho/public_html/helios/chase/vendor/jms/serializer/src/JMS/Serializer/Metadata/Driver/YamlDriver.php:38 Stack trace: #0 /home/awtechho/public_html/helios/chase/vendor/jms/metadata/src/Metadata/Driver/AbstractFileDriver.php(28): JMS\Serializer\Metadata\Driver\YamlDriver-&amp;gt;loadMetadataFromFile(Object(ReflectionClass), '/home/awtechho/...') #1 /home/awtechho/public_html/helios/chase/vendor/jms/metadata/src/Metadata/Driver/DriverChain.php(38): Metadata\Driver\AbstractFileDriver-&amp;gt;loadMetadataForClass(Object(ReflectionClass)) #2 /home/awtechho/public_html/helios/chase/vendor/jms/metadata/src/Metadata/MetadataFactory.php(103): Metadata\Driver\DriverChain-&amp;gt;loadMetadataForClass(Object(ReflectionClass)) #3 /home/awtechho/public_ in &lt;STRONG&gt;/home/awtechho/public_html/helios/chase/vendor/jms/serializer/src/JMS/Serializer/Metadata/Driver/YamlDriver.php&lt;/STRONG&gt; on line &lt;STRONG&gt;38&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Dec 2015 05:59:25 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/API-Reference-Charge-A-Card-Sample-Code-Error/m-p/53354#M28477</guid>
      <dc:creator>MarkS1125</dc:creator>
      <dc:date>2015-12-18T05:59:25Z</dc:date>
    </item>
  </channel>
</rss>

