<?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 TOKEN RECEIVED NEXT STEPS ? in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/TOKEN-RECEIVED-NEXT-STEPS/m-p/66884#M40382</link>
    <description>&lt;P&gt;I receive&amp;nbsp;my token just fine, what are the next steps to set up the form fields for the post to&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://apitest.authorize.net/xml/v1/request.api" target="_blank"&gt;https://apitest.authorize.net/xml/v1/request.api&lt;/A&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Do I call certain API's, a little confused by the docs on this REST interface?&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;When I call :&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;$lineItem1 = new AnetAPI\LineItemType();&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;$lineItem1-&amp;gt;setItemId($item_id);&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;$an_tranobj-&amp;gt;addToLineItems($lineItem1);&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Is this really generating the XML to be sent.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Do I need to use the API to correctly generate the XML for AN to accept it?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I have had a working version som SIM for over 8 years and the conversion is causing lots of problems, I use REST interfaces on other interfaces and they usually create a code example of a start to finish, I have looked at the ones on GitHub, but they all seem to assume facts not in evidence!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I am hoping one of you experts can lend me a hand on this.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Jim&lt;/SPAN&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;</description>
    <pubDate>Tue, 12 Mar 2019 15:58:15 GMT</pubDate>
    <dc:creator>jmd804500</dc:creator>
    <dc:date>2019-03-12T15:58:15Z</dc:date>
    <item>
      <title>TOKEN RECEIVED NEXT STEPS ?</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/TOKEN-RECEIVED-NEXT-STEPS/m-p/66884#M40382</link>
      <description>&lt;P&gt;I receive&amp;nbsp;my token just fine, what are the next steps to set up the form fields for the post to&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://apitest.authorize.net/xml/v1/request.api" target="_blank"&gt;https://apitest.authorize.net/xml/v1/request.api&lt;/A&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Do I call certain API's, a little confused by the docs on this REST interface?&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;When I call :&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;$lineItem1 = new AnetAPI\LineItemType();&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;$lineItem1-&amp;gt;setItemId($item_id);&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;$an_tranobj-&amp;gt;addToLineItems($lineItem1);&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Is this really generating the XML to be sent.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Do I need to use the API to correctly generate the XML for AN to accept it?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I have had a working version som SIM for over 8 years and the conversion is causing lots of problems, I use REST interfaces on other interfaces and they usually create a code example of a start to finish, I have looked at the ones on GitHub, but they all seem to assume facts not in evidence!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I am hoping one of you experts can lend me a hand on this.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Jim&lt;/SPAN&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;</description>
      <pubDate>Tue, 12 Mar 2019 15:58:15 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/TOKEN-RECEIVED-NEXT-STEPS/m-p/66884#M40382</guid>
      <dc:creator>jmd804500</dc:creator>
      <dc:date>2019-03-12T15:58:15Z</dc:date>
    </item>
    <item>
      <title>Re: TOKEN RECEIVED NEXT STEPS ?</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/TOKEN-RECEIVED-NEXT-STEPS/m-p/66890#M40388</link>
      <description>&lt;P&gt;&lt;a href="https://community.developer.cybersource.com/t5/user/viewprofilepage/user-id/29063"&gt;@jmd804500&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The API does the conversion for you when you set those objects. You do not have to use any special encoding or formatting that you wouldn't ordinarily use in your application. You still have to supply elements of the right type.&amp;nbsp; So $transactionRequest-&amp;gt;setLineItems() will expect an array. But beyond doing type matching like this, it's business as usual.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As far as sending pure XML, it works.&amp;nbsp; I have never done it but you can. I personally find it much easier to use the SDK package, but if that works for you you can surely do it.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Mar 2019 18:01:32 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/TOKEN-RECEIVED-NEXT-STEPS/m-p/66890#M40388</guid>
      <dc:creator>Renaissance</dc:creator>
      <dc:date>2019-03-12T18:01:32Z</dc:date>
    </item>
    <item>
      <title>Re: TOKEN RECEIVED NEXT STEPS ?</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/TOKEN-RECEIVED-NEXT-STEPS/m-p/66891#M40389</link>
      <description>&lt;P&gt;Thanks for the feed back,&lt;/P&gt;&lt;P&gt;currently when my page returns I just get two&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Order Summary&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;with two buttons&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;any Ideas? is there a typical order to call the API in?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Mar 2019 18:18:23 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/TOKEN-RECEIVED-NEXT-STEPS/m-p/66891#M40389</guid>
      <dc:creator>jmd804500</dc:creator>
      <dc:date>2019-03-12T18:18:23Z</dc:date>
    </item>
    <item>
      <title>Re: TOKEN RECEIVED NEXT STEPS ?</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/TOKEN-RECEIVED-NEXT-STEPS/m-p/66892#M40390</link>
      <description>&lt;P&gt;So you are saying that when you call an Accept Hosted Payment Form you get a form that has only those fields?&lt;/P&gt;</description>
      <pubDate>Tue, 12 Mar 2019 18:22:10 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/TOKEN-RECEIVED-NEXT-STEPS/m-p/66892#M40390</guid>
      <dc:creator>Renaissance</dc:creator>
      <dc:date>2019-03-12T18:22:10Z</dc:date>
    </item>
    <item>
      <title>Re: TOKEN RECEIVED NEXT STEPS ?</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/TOKEN-RECEIVED-NEXT-STEPS/m-p/66893#M40391</link>
      <description>&lt;P&gt;Also:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Code:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;function add_line_item($item_id,$name,$desc,$qty,$unit_price,$taxalbe=0)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$lineItem1 = new AnetAPI\LineItemType();&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$lineItem1-&amp;gt;setItemId($item_id);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$lineItem1-&amp;gt;setName($name);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$lineItem1-&amp;gt;setDescription($desc);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$lineItem1-&amp;gt;setQuantity($qty);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$lineItem1-&amp;gt;setUnitPrice($unit_price);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$lineItem1-&amp;gt;setTaxable(0); // 1 Yes 0 for no&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$this-&amp;gt;lineItems_ary[$this-&amp;gt;liinc++] = $lineItem1;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;$an_tran_obj-&amp;gt;setLineItems($this-&amp;gt;lineItems_ary);&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;ERROR: E00003 The element 'lineItem' in namespace 'AnetApi/xml/v1/sche&lt;BR /&gt;ma/AnetApiSchema.xsd' has invalid child element 'quantity' in namespace 'AnetApi/xml/v1/schema/AnetApiSchema.xsd'. List of possible elements expected: 'itemId' in namespace 'Ane&lt;BR /&gt;tApi/xml/v1/schema/AnetApiSchema.xsd'&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Mar 2019 18:22:17 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/TOKEN-RECEIVED-NEXT-STEPS/m-p/66893#M40391</guid>
      <dc:creator>jmd804500</dc:creator>
      <dc:date>2019-03-12T18:22:17Z</dc:date>
    </item>
    <item>
      <title>Re: TOKEN RECEIVED NEXT STEPS ?</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/TOKEN-RECEIVED-NEXT-STEPS/m-p/66894#M40392</link>
      <description>&lt;P&gt;Yes&lt;/P&gt;</description>
      <pubDate>Tue, 12 Mar 2019 18:22:47 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/TOKEN-RECEIVED-NEXT-STEPS/m-p/66894#M40392</guid>
      <dc:creator>jmd804500</dc:creator>
      <dc:date>2019-03-12T18:22:47Z</dc:date>
    </item>
    <item>
      <title>Re: TOKEN RECEIVED NEXT STEPS ?</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/TOKEN-RECEIVED-NEXT-STEPS/m-p/66895#M40393</link>
      <description>&lt;P&gt;So for your form you need to add settings to the hosted payment form. There are a bunch of them. Here is an example snippet of code that will get the email address field to populate.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;$setting4-&amp;gt;setSettingName("hostedPaymentCustomerOptions");&lt;BR /&gt;$setting4-&amp;gt;setSettingValue( "{\"showEmail\": true, \"requiredEmail\": true}");&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can add several values to any setting, given that the setting supports that value.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Mar 2019 18:28:07 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/TOKEN-RECEIVED-NEXT-STEPS/m-p/66895#M40393</guid>
      <dc:creator>Renaissance</dc:creator>
      <dc:date>2019-03-12T18:28:07Z</dc:date>
    </item>
    <item>
      <title>Re: TOKEN RECEIVED NEXT STEPS ?</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/TOKEN-RECEIVED-NEXT-STEPS/m-p/66896#M40394</link>
      <description>&lt;P&gt;Is there by chance a&amp;nbsp; &amp;nbsp;list of these somewhere I could review or a typical list that people set?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Mar 2019 18:33:24 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/TOKEN-RECEIVED-NEXT-STEPS/m-p/66896#M40394</guid>
      <dc:creator>jmd804500</dc:creator>
      <dc:date>2019-03-12T18:33:24Z</dc:date>
    </item>
    <item>
      <title>Re: TOKEN RECEIVED NEXT STEPS ?</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/TOKEN-RECEIVED-NEXT-STEPS/m-p/66897#M40395</link>
      <description>&lt;P&gt;Yes in the API docs for the hosted form.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is a good place to start.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://developer.authorize.net/api/reference/features/accept_hosted.html" target="_blank"&gt;https://developer.authorize.net/api/reference/features/accept_hosted.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think there are some also in the main API reference. Click the API tab at the top of this forum and then go to the link on the right for "Accept Suite".&lt;/P&gt;</description>
      <pubDate>Tue, 12 Mar 2019 18:36:02 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/TOKEN-RECEIVED-NEXT-STEPS/m-p/66897#M40395</guid>
      <dc:creator>Renaissance</dc:creator>
      <dc:date>2019-03-12T18:36:02Z</dc:date>
    </item>
    <item>
      <title>Re: TOKEN RECEIVED NEXT STEPS ?</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/TOKEN-RECEIVED-NEXT-STEPS/m-p/66898#M40396</link>
      <description>&lt;P&gt;That error reponse you are getting isn't something I can figure out, as I am not familiar with that syntax. Is that coldfusion you are using?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Mar 2019 18:37:22 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/TOKEN-RECEIVED-NEXT-STEPS/m-p/66898#M40396</guid>
      <dc:creator>Renaissance</dc:creator>
      <dc:date>2019-03-12T18:37:22Z</dc:date>
    </item>
    <item>
      <title>Re: TOKEN RECEIVED NEXT STEPS ?</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/TOKEN-RECEIVED-NEXT-STEPS/m-p/66899#M40397</link>
      <description>&lt;P&gt;NO pure PHP, and the API via&amp;nbsp; &amp;nbsp;And I do get a token back, then post page as per docs to&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://apitest.authorize.net/xml/v1/request.api" target="_blank"&gt;https://apitest.authorize.net/xml/v1/request.api&lt;/A&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;function get_an_token(AnetAPI\MerchantAuthenticationType $ma,$invoice,AnetAPI\TransactionR
equestType $an_obj,array $stary = null)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;if(is_null($stary))
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$stary = $this-&amp;gt;get_form_option();
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;//-----------------------------------------------------------
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;//
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;//-----------------------------------------------------------
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$ma = $this-&amp;gt;merchant_authenticate();

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$request = new AnetAPI\GetHostedPaymentPageRequest();
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$request-&amp;gt;setMerchantAuthentication($ma);

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$request-&amp;gt;setRefId($invoice);//refId is the invioce

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$request-&amp;gt;setTransactionRequest($an_obj);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$stary = $this-&amp;gt;get_form_options();
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;if(count($stary) &amp;gt; 0)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;foreach($stary as $skey =&amp;gt; $sval)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;if($this-&amp;gt;DEBUG)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$this-&amp;gt;logEvent("INFO: SKEY[".$skey."]");
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$request-&amp;gt;addToHostedPaymentSettings($sval);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;//-----------------------------------------------------------
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;//EXECUTE REQUEST
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;//-----------------------------------------------------------
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$controller = new AnetController\GetHostedPaymentPageController($request);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;if($this-&amp;gt;mode == '1' or $this-&amp;gt;mode == '4')
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$response = $controller-&amp;gt;executeWithApiResponse(\net\authorize\api\constants\ANetEn
vironment::SANDBOX);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;elseif($this-&amp;gt;mode == '3')
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$response = $controller-&amp;gt;executeWithApiResponse(\net\authorize\api\constants\ANetEn
vironment::PRODUCTION);

}
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;else
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$this-&amp;gt;logEvent("ERROR: UNKNOWN MODE[".$this-&amp;gt;mode."] ***** SPECIFIED *****");
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;return;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;//-----------------------------------------------------------
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;//SET RESPONSE
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;//-----------------------------------------------------------
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;if (($response != null) &amp;amp;&amp;amp; ($response-&amp;gt;getMessages()-&amp;gt;getResultCode() == "Ok"))
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$this-&amp;gt;token = $response-&amp;gt;getToken();
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;if($this-&amp;gt;DEBUG){$this-&amp;gt;logEvent("INFO: TOKEN RECEIVED[".$this-&amp;gt;token."]");}
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$message = $response-&amp;gt;getMessages()-&amp;gt;getMessage();
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;foreach($message as $mkey =&amp;gt; $mval)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$this-&amp;gt;logEvent("INFO: ".$message[$mkey]-&amp;gt;getCode().
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;" ".$message[$mkey]-&amp;gt;getText());
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;else
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$this-&amp;gt;logEvent("ERROR: Failed to get hosted payment page token");
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$error_message = $response-&amp;gt;getMessages()-&amp;gt;getMessage();
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$this-&amp;gt;logEvent("ERROR: ".$error_message[0]-&amp;gt;getCode()." ".$error_message[0]-&amp;gt;getTe
xt());
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;return($response);&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Mar 2019 18:50:53 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/TOKEN-RECEIVED-NEXT-STEPS/m-p/66899#M40397</guid>
      <dc:creator>jmd804500</dc:creator>
      <dc:date>2019-03-12T18:50:53Z</dc:date>
    </item>
    <item>
      <title>Re: TOKEN RECEIVED NEXT STEPS ?</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/TOKEN-RECEIVED-NEXT-STEPS/m-p/66900#M40398</link>
      <description>&lt;PRE&gt;HERE IS THE PAGE I GET BACK FROM AUTHORIZE.NET&lt;BR /&gt;&lt;BR /&gt;&amp;lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&amp;gt;
&amp;lt;html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"&amp;gt;

&amp;lt;meta http-equiv="X-UA-Compatible" content="IE=edge" /&amp;gt;
&amp;lt;meta charset="utf-8"&amp;gt;
&amp;lt;meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=0"&amp;gt;

&amp;lt;head id="Head1"&amp;gt;&amp;lt;title&amp;gt;
	Secure Information
&amp;lt;/title&amp;gt;
        &amp;lt;script type="text/javascript"&amp;gt;
          var g_token = "IE..TOKEN-HERE";
          var g_merchantData = {"totalAmount":"62.5","currencySymbol":"$"};
          var g_pageOptions = {"hostedPaymentButtonOptions":{"text":"Submit Payment"},"hostedPaymentStyleOptions":{"bgColor":"red"},"hostedPaymentOrderOptions":{"show":true,"merchantName":"Texas Girls Coaches Assoc."},"hostedPaymentReturnOptions":{"url":"http://tgca_dev.jdoherty.net/php/sadispatch.php?event=renew_ccpost;
          var g_paymentProfiles = null;
          var g_maxPaymentProfiles = false;
          var g_errorPanelMessage = "There was a technical issue processing your request.";
          var g_siteKey = "6Lc8tgYAAAAAAFfalsuPuIZ6bv_2dGT_Y9ZxURiK";
        &amp;lt;/script&amp;gt;
      
&amp;lt;script type="text/javascript"&amp;gt;
  var g_EcheckEnabled = true;
var g_CreditEnabled = true;
  &amp;lt;/script&amp;gt;
  &amp;lt;base href="./Scripts/v1/"&amp;gt;
&amp;lt;/head&amp;gt;
&amp;lt;body&amp;gt;
  &amp;lt;div class="PageOuter" id="divPageOuter"&amp;gt;
    &amp;lt;div id="divPopupScreen" class="PopupScreen" style="display:none;"&amp;gt;&amp;lt;/div&amp;gt;
      &amp;lt;div class="Page" id="divPage"&amp;gt;
      &amp;lt;div class="PageMain container" id="divPageMain container"&amp;gt;
        
          &amp;lt;app-accept-payment&amp;gt;&amp;lt;/app-accept-payment&amp;gt;
         
          &amp;lt;link href="styles.bundle.css" rel="stylesheet"/&amp;gt;
          &amp;lt;script type="text/javascript" src="inline.bundle.js"&amp;gt;&amp;lt;/script&amp;gt;
          &amp;lt;script type="text/javascript" src="polyfills.bundle.js"&amp;gt;&amp;lt;/script&amp;gt;
          &amp;lt;script type="text/javascript" src="scripts.bundle.js"&amp;gt;&amp;lt;/script&amp;gt;
          &amp;lt;script type="text/javascript" src="main.bundle.js"&amp;gt;&amp;lt;/script&amp;gt;        
        
      &amp;lt;/div&amp;gt;
      &amp;lt;div class="PageMainAfter"&amp;gt;&amp;lt;/div&amp;gt;
    &amp;lt;/div&amp;gt;
  &amp;lt;/div&amp;gt;
&amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 12 Mar 2019 19:12:20 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/TOKEN-RECEIVED-NEXT-STEPS/m-p/66900#M40398</guid>
      <dc:creator>jmd804500</dc:creator>
      <dc:date>2019-03-12T19:12:20Z</dc:date>
    </item>
    <item>
      <title>Re: TOKEN RECEIVED NEXT STEPS ?</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/TOKEN-RECEIVED-NEXT-STEPS/m-p/66953#M40445</link>
      <description>Ok I see. It looked like php but not the typical style that I see it written in. I’ve heard that coldfusion is similar to php and I’ve seen smarty code that is a slightly modified version of php. Had I saw the rest of your code it would have made more sense.&lt;BR /&gt;&lt;BR /&gt;I am thinking your error is due to not having an item id. If you print out the value for the item Id you are passing in your function, does it come up empty or null?</description>
      <pubDate>Fri, 15 Mar 2019 03:03:05 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/TOKEN-RECEIVED-NEXT-STEPS/m-p/66953#M40445</guid>
      <dc:creator>Renaissance</dc:creator>
      <dc:date>2019-03-15T03:03:05Z</dc:date>
    </item>
  </channel>
</rss>

