<?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: Accept Hosted PHP Implementation in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Accept-Hosted-PHP-Implementation/m-p/59052#M33653</link>
    <description>&lt;P&gt;Hm, so I guess I'm wondering why I would have my users click a button that says "get accept hosted page" - instead of just displaying the form for them to enter their info in immediately? &amp;nbsp;Am I missing the point here, or can I bypass this step for the user and show them the payment screen immediately?&lt;/P&gt;</description>
    <pubDate>Sun, 30 Jul 2017 02:28:38 GMT</pubDate>
    <dc:creator>shackrock</dc:creator>
    <dc:date>2017-07-30T02:28:38Z</dc:date>
    <item>
      <title>Accept Hosted PHP Implementation</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Accept-Hosted-PHP-Implementation/m-p/59028#M33629</link>
      <description>&lt;P&gt;Hello. &amp;nbsp;I'm attempting to implement the Accept Hosted instead of SIM, like many others, but am having a lot of initial issues getting things working.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to focus on a simple example first, and simply grabbing this file to see the token printed out that is received.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/AuthorizeNet/sample-code-php/blob/master/PaymentTransactions/get-an-accept-payment-page.php" target="_blank"&gt;https://github.com/AuthorizeNet/sample-code-php/blob/master/PaymentTransactions/get-an-accept-payment-page.php&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to paste my exact code so that it's obvious below. &amp;nbsp;Right now my error is:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Fatal error&lt;/STRONG&gt;&lt;SPAN&gt;: Class 'net\authorize\api\contract\v1\GetHostedPaymentPageRequest' not found in&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;/home/xxxxxxxxxxxx/pay/sdk-php-1.9.3/get-an-accept-payment-page.php&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;on line&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;42&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Similar to this thread: &amp;nbsp;&lt;A href="https://community.developer.authorize.net/t5/Integration-and-Testing/Class-GetHostedPaymentPageRequest-not-found/td-p/57793" target="_blank"&gt;https://community.developer.authorize.net/t5/Integration-and-Testing/Class-GetHostedPaymentPageRequest-not-found/td-p/57793&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&amp;lt;?php
	ini_set('display_errors', 1);
	ini_set('display_startup_errors', 1);
	error_reporting(E_ALL);
	
	require 'autoload.php'; //this file is IN the SDK folder v1.9.3.
	
  use net\authorize\api\contract\v1 as AnetAPI;
  use net\authorize\api\controller as AnetController;

  define("AUTHORIZENET_LOG_FILE", "phplog");
  
function getAnAcceptPaymentPage(){
    /* Create a merchantAuthenticationType object with authentication details
       retrieved from the constants file */
    $merchantAuthentication = new AnetAPI\MerchantAuthenticationType();
    $merchantAuthentication-&amp;gt;setName("XXXXXXXXX");
    $merchantAuthentication-&amp;gt;setTransactionKey("YYYYYYYY");
    
    // Set the transaction's refId
    $refId = 'ref' . time();

    //create a transaction
    $transactionRequestType = new AnetAPI\TransactionRequestType();
    $transactionRequestType-&amp;gt;setTransactionType("authCaptureTransaction"); 
    $transactionRequestType-&amp;gt;setAmount("12.23"); // To be defined through form field.

    // Set Hosted Form options    
    $setting1 = new AnetAPI\SettingType();
    $setting1-&amp;gt;setSettingName("hostedPaymentButtonOptions");
    $setting1-&amp;gt;setSettingValue("{\"text\": \"Pay\"}");

    $setting2 = new AnetAPI\SettingType();
    $setting2-&amp;gt;setSettingName("hostedPaymentOrderOptions");
    $setting2-&amp;gt;setSettingValue("{\"show\": false}");

    $setting3 = new AnetAPI\SettingType();
    $setting3-&amp;gt;setSettingName("hostedPaymentReturnOptions");
    $setting3-&amp;gt;setSettingValue("{\"url\": \"https://mysite.com/receipt\", \"cancelUrl\": \"https://mysite.com/cancel\", \"showReceipt\": true}");

    // Build transaction request    
    $request = new AnetAPI\GetHostedPaymentPageRequest();
    $request-&amp;gt;setMerchantAuthentication($merchantAuthentication);
    $request-&amp;gt;setTransactionRequest($transactionRequestType);

    $request-&amp;gt;addToHostedPaymentSettings($setting1);
    $request-&amp;gt;addToHostedPaymentSettings($setting2);
    $request-&amp;gt;addToHostedPaymentSettings($setting3);
    
    //execute request
    $controller = new AnetController\GetHostedPaymentPageController($request);
    $response = $controller-&amp;gt;executeWithApiResponse( \net\authorize\api\constants\ANetEnvironment::PRODUCTION);
    
    if (($response != null) &amp;amp;&amp;amp; ($response-&amp;gt;getMessages()-&amp;gt;getResultCode() == "Ok") )
    {
      echo $response-&amp;gt;getToken()."\n";
     }
    else
    {
      echo "ERROR :  Failed to get hosted payment page token\n";
      $errorMessages = $response-&amp;gt;getMessages()-&amp;gt;getMessage();
      echo "RESPONSE : " . $errorMessages[0]-&amp;gt;getCode() . "  " .$errorMessages[0]-&amp;gt;getText() . "\n";
    }
    return $response;
  }
  if(!defined('DONT_RUN_SAMPLES'))
      getAnAcceptPaymentPage();
?&amp;gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 29 Jul 2017 03:13:25 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Accept-Hosted-PHP-Implementation/m-p/59028#M33629</guid>
      <dc:creator>shackrock</dc:creator>
      <dc:date>2017-07-29T03:13:25Z</dc:date>
    </item>
    <item>
      <title>Re: Accept Hosted PHP Implementation</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Accept-Hosted-PHP-Implementation/m-p/59029#M33630</link>
      <description>&lt;P&gt;The main path for the autoloading is the location of the composer.json file, so if that lives in /var/www/src/MyApp/, the autoloading will use that as a base.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If&amp;nbsp;using Composer on Windows, when a global install of a library / package is done, composer stores the package in a Composer directory inside Windows'&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;application data folders&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;which by default is "C:\Users{user name}\AppData\Roaming".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To change this folder to, for example, "C:\php\composer", create a COMPOSER_HOME environmental variable with the value set to "C:\php\composer".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Alternatively, there is custom SPL autoloader for you to reference from within your PHP file:&lt;/P&gt;&lt;PRE&gt;&lt;SPAN class="kwd"&gt;require&lt;/SPAN&gt; &lt;SPAN class="str"&gt;'path/to/anet_php_sdk/autoload.php'&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;This autoloader still requires the vendor directory and all of its dependencies to exist. However, this is a possible solution for cases where composer can't be run on a given system. You can run composer locally or on another system to build the directory, then copy the vendor directory to the desired system.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;With that being said, you don't need to use the SDK. In fact, if you are just getting started it may cloud your perspective, because unless you have looked through and fully understand what every function does, then you are working in the dark. But fear not, because working with Authorize.net's API is very easy, &amp;nbsp;they have done and continue to do a great job, implementing and documenting the many excellent features of the API, making it very powerful and functional for you and your clients.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To get an Accept Hosted page, it is just a matter of posting the XML or JSON similar to the following, to the appropriate end point ...,&lt;/P&gt;&lt;P&gt;Sandbox URL: &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;/P&gt;&lt;P&gt;Production URL: &lt;A href="https://api.authorize.net/xml/v1/request.api" target="_blank"&gt;https://api.authorize.net/xml/v1/request.api&lt;/A&gt;&lt;/P&gt;&lt;P&gt;retreiving the token and populating your form's "token" input with this value.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&amp;lt;getHostedPaymentPageRequest xmlns="AnetApi/xml/v1/schema/AnetApiSchema.xsd"&amp;gt;
	&amp;lt;merchantAuthentication&amp;gt;
		&amp;lt;name&amp;gt;YOUR_LOGIN&amp;lt;/name&amp;gt;
		&amp;lt;transactionKey&amp;gt;YOUR_TRANSACTION_KEY&amp;lt;/transactionKey&amp;gt;
	&amp;lt;/merchantAuthentication&amp;gt;
	&amp;lt;transactionRequest&amp;gt;
		&amp;lt;transactionType&amp;gt;authCaptureTransaction&amp;lt;/transactionType&amp;gt;
		&amp;lt;amount&amp;gt;20.00&amp;lt;/amount&amp;gt;
	&amp;lt;/transactionRequest&amp;gt;
	&amp;lt;hostedPaymentSettings&amp;gt;
		&amp;lt;setting&amp;gt;
			&amp;lt;settingName&amp;gt;hostedPaymentBillingAddressOptions&amp;lt;/settingName&amp;gt;
			&amp;lt;settingValue&amp;gt;{"show": true, "required":true}&amp;lt;/settingValue&amp;gt;
		&amp;lt;/setting&amp;gt;
		&amp;lt;setting&amp;gt;
			&amp;lt;settingName&amp;gt;hostedPaymentButtonOptions&amp;lt;/settingName&amp;gt;
			&amp;lt;settingValue&amp;gt;{"text": "Pay"}&amp;lt;/settingValue&amp;gt;
		&amp;lt;/setting&amp;gt;
		&amp;lt;setting&amp;gt;
			&amp;lt;settingName&amp;gt;hostedPaymentReturnOptions&amp;lt;/settingName&amp;gt;
			&amp;lt;settingValue&amp;gt;{"url":"https://YOUR_SITE.com/good","urlText":"Continue","cancelUrl":"https://YOUR_SITE.com/cancel","cancelUrlText":"Cancel"}&amp;lt;/settingValue&amp;gt;
		&amp;lt;/setting&amp;gt;
	&amp;lt;/hostedPaymentSettings&amp;gt;
&amp;lt;/getHostedPaymentPageRequest&amp;gt;&lt;/PRE&gt;&lt;P&gt;JSON version:&lt;/P&gt;&lt;PRE&gt;{
	"getHostedPaymentPageRequest": {
		"merchantAuthentication": {
			"name": "YOUR_API_LOGIN",
			"transactionKey": "YOUR_TRANSACTION_KEY"
		},
		"transactionRequest": {
			"transactionType": "authCaptureTransaction",
			"amount": "20.00",
			"customer": {
				"email": "goodCustomer@gmail.com"
			},
			"billTo": {
				"firstName": "Mary",
				"lastName": "Watson",
				"company": "Souveniropolis",
				"address": "Park Avenue",
				"city": "New York",
				"state": "NY",
				"zip": "10154",
				"country": "USA"
			}
		},
		"hostedPaymentSettings": {
			"setting": [{
				"settingName": "hostedPaymentBillingAddressOptions",
				"settingValue": "{\"show\": true, \"required\":true}"
			}, {
				"settingName": "hostedPaymentButtonOptions",
				"settingValue": "{\"text\": \"Pay\"}"
			}, {
				"settingName": "hostedPaymentCustomerOptions",
				"settingValue": "{\"showEmail\":true,\"requiredEmail\":true}"
			}, {
				"settingName": "hostedPaymentPaymentOptions",
				"settingValue": "{\"cardCodeRequired\":true}"
			}, {
				"settingName": "hostedPaymentReturnOptions",
				"settingValue": "{\"url\":\"https://YOUR_SITE.com/continue\",\"urlText\":\"Continue\",\"cancelUrl\":\"https://YOUR_SITE.com/cancel\",\"cancelUrlText\":\"Cancel\"}"
			}, {
				"settingName": "hostedPaymentSecurityOptions",
				"settingValue": "{\"captcha\": false}"
			}, {
				"settingName": "hostedPaymentShippingAddressOptions",
				"settingValue": "{\"show\":false,\"required\":true}"
			}, {
				"settingName": "hostedPaymentStyleOptions",
				"settingValue": "{\"bgColor\": \"EE00EE\"}"
			}]
		}
	}
}&lt;/PRE&gt;&lt;P&gt;Once you have the token, the form post urls:&lt;BR /&gt;Sandbox: &lt;A href="https://test.authorize.net/payment/payment" target="_blank"&gt;https://test.authorize.net/payment/payment&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Production: &lt;A href="https://accept.authorize.net/payment/payment" target="_blank"&gt;https://accept.authorize.net/payment/payment&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;Reference: &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;</description>
      <pubDate>Sat, 29 Jul 2017 07:20:47 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Accept-Hosted-PHP-Implementation/m-p/59029#M33630</guid>
      <dc:creator>NexusSoftware</dc:creator>
      <dc:date>2017-07-29T07:20:47Z</dc:date>
    </item>
    <item>
      <title>Re: Accept Hosted PHP Implementation</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Accept-Hosted-PHP-Implementation/m-p/59030#M33631</link>
      <description>&lt;P&gt;Hmmmm.&lt;/P&gt;&lt;P&gt;So I did not use composer, and therefore included the path to the autoload.php file within the SDK. &amp;nbsp;I do not have the vendor folder + its dependancies however - where would I get that for my info without copmoser?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Secondly, how would I post the XML or JSON data to receive the token using PHP?&lt;/P&gt;</description>
      <pubDate>Sat, 29 Jul 2017 12:22:41 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Accept-Hosted-PHP-Implementation/m-p/59030#M33631</guid>
      <dc:creator>shackrock</dc:creator>
      <dc:date>2017-07-29T12:22:41Z</dc:date>
    </item>
    <item>
      <title>Re: Accept Hosted PHP Implementation</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Accept-Hosted-PHP-Implementation/m-p/59031#M33632</link>
      <description>&lt;P&gt;Just to give some background, here's what I've tried:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PHP:&lt;/P&gt;&lt;PRE&gt;&amp;lt;?PHP&lt;BR /&gt; error_reporting( E_ALL );&lt;BR /&gt; ini_set('display_errors', 1);&lt;BR /&gt; &lt;BR /&gt; $input_xml = '&amp;lt;getHostedPaymentPageRequest xmlns="AnetApi/xml/v1/schema/AnetApiSchema.xsd"&amp;gt;&lt;BR /&gt; &amp;lt;merchantAuthentication&amp;gt;&lt;BR /&gt; &amp;lt;name&amp;gt;xxxxxx&amp;lt;/name&amp;gt;&lt;BR /&gt; &amp;lt;transactionKey&amp;gt;xxxxx&amp;lt;/transactionKey&amp;gt;&lt;BR /&gt; &amp;lt;/merchantAuthentication&amp;gt;&lt;BR /&gt; &amp;lt;transactionRequest&amp;gt;&lt;BR /&gt; &amp;lt;transactionType&amp;gt;authCaptureTransaction&amp;lt;/transactionType&amp;gt;&lt;BR /&gt; &amp;lt;amount&amp;gt;1.00&amp;lt;/amount&amp;gt;&lt;BR /&gt; &amp;lt;/transactionRequest&amp;gt;&lt;BR /&gt; &amp;lt;hostedPaymentSettings&amp;gt;&lt;BR /&gt; &amp;lt;setting&amp;gt;&lt;BR /&gt; &amp;lt;settingName&amp;gt;hostedPaymentBillingAddressOptions&amp;lt;/settingName&amp;gt;&lt;BR /&gt; &amp;lt;settingValue&amp;gt;{"show": true, "required":true}&amp;lt;/settingValue&amp;gt;&lt;BR /&gt; &amp;lt;/setting&amp;gt;&lt;BR /&gt; &amp;lt;setting&amp;gt;&lt;BR /&gt; &amp;lt;settingName&amp;gt;hostedPaymentButtonOptions&amp;lt;/settingName&amp;gt;&lt;BR /&gt; &amp;lt;settingValue&amp;gt;{"text": "Pay"}&amp;lt;/settingValue&amp;gt;&lt;BR /&gt; &amp;lt;/setting&amp;gt;&lt;BR /&gt; &amp;lt;setting&amp;gt;&lt;BR /&gt; &amp;lt;settingName&amp;gt;hostedPaymentReturnOptions&amp;lt;/settingName&amp;gt;&lt;BR /&gt; &amp;lt;settingValue&amp;gt;{"url":"https://www.mystore.com/good","urlText":"Continue","cancelUrl":"https://www.mystore.com/cancel","cancelUrlText":"Cancel"}&amp;lt;/settingValue&amp;gt;&lt;BR /&gt; &amp;lt;/setting&amp;gt;&lt;BR /&gt; &amp;lt;/hostedPaymentSettings&amp;gt;&lt;BR /&gt; &amp;lt;/getHostedPaymentPageRequest&amp;gt;';&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt; $url = "&lt;A href="https://api.authorize.net/xml/v1/request.api" target="_blank"&gt;https://accept.authorize.net/payment/payment&lt;/A&gt;";&lt;BR /&gt;&lt;BR /&gt; //setting the curl parameters.&lt;BR /&gt; $ch = curl_init();&lt;BR /&gt; curl_setopt($ch, CURLOPT_URL, $url);&lt;BR /&gt; curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type: application/xml'));&lt;BR /&gt; // Following line is compulsary to add as it is:&lt;BR /&gt; curl_setopt($ch, CURLOPT_POSTFIELDS,&lt;BR /&gt; "xmlRequest=" . $input_xml);&lt;BR /&gt; curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);&lt;BR /&gt; curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 300);&lt;BR /&gt; curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 1); //for production, set value to true or 1&lt;BR /&gt; curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 2); //for production, set value to 2&lt;BR /&gt; $data = curl_exec($ch);&lt;BR /&gt; curl_close($ch);&lt;BR /&gt;&lt;BR /&gt; //convert the XML result into array&lt;BR /&gt; //$array_data = json_decode(json_encode(simplexml_load_string($data)), true);&lt;BR /&gt;&lt;BR /&gt; print_r($data);&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;?&amp;gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I load the PHP file on my browser, I expect to see the XML response, but instead I see this (this is shown on the browser):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="ErrorPanelMsg"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;PRE&gt;&amp;lt;?xml version="1.0" encoding="utf-8"?&amp;gt;&amp;lt;ErrorResponse xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="AnetApi/xml/v1/schema/AnetApiSchema.xsd"&amp;gt;&amp;lt;messages&amp;gt;&amp;lt;resultCode&amp;gt;Error&amp;lt;/resultCode&amp;gt;&amp;lt;message&amp;gt;&amp;lt;code&amp;gt;E00003&amp;lt;/code&amp;gt;&amp;lt;text&amp;gt;Data at the root level is invalid. Line 1, position 1.&amp;lt;/text&amp;gt;&amp;lt;/message&amp;gt;&amp;lt;/messages&amp;gt;&amp;lt;/ErrorResponse&amp;gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 29 Jul 2017 13:03:23 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Accept-Hosted-PHP-Implementation/m-p/59031#M33632</guid>
      <dc:creator>shackrock</dc:creator>
      <dc:date>2017-07-29T13:03:23Z</dc:date>
    </item>
    <item>
      <title>Re: Accept Hosted PHP Implementation</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Accept-Hosted-PHP-Implementation/m-p/59032#M33633</link>
      <description>&lt;P&gt;Change&lt;/P&gt;&lt;PRE&gt;$url = "https://api.authorize.net/xml/v1/request.api"; // For live &lt;/PRE&gt;&lt;P&gt;and&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;curl_setopt($ch, CURLOPT_POSTFIELDS, $input_xml);&lt;/PRE&gt;&lt;P&gt;Generate a new Transaction Key, &amp;nbsp;and don't share it. &amp;nbsp;I see that you subsequently x'd it out, good, but the real one one was visible for a time and maybe cached.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 29 Jul 2017 13:44:45 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Accept-Hosted-PHP-Implementation/m-p/59032#M33633</guid>
      <dc:creator>NexusSoftware</dc:creator>
      <dc:date>2017-07-29T13:44:45Z</dc:date>
    </item>
    <item>
      <title>Re: Accept Hosted PHP Implementation</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Accept-Hosted-PHP-Implementation/m-p/59048#M33649</link>
      <description>&lt;P&gt;=). &amp;nbsp;I did immediately when I realized! &amp;nbsp;Thanks. &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This worked, I actually realied the URL was wrong earlier and got another error, but once I edited my postfields as you noted it worked flawlessly to get the transaction key. &amp;nbsp;Thank you!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So now it says to "&lt;SPAN&gt;redirect the customer to the payment form by sending an HTML form post to our URL - &lt;A href="https://accept.authorize.net/payment/payment" target="_blank"&gt;https://accept.authorize.net/payment/payment&lt;/A&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;I have not found any example of this, is there one available? &amp;nbsp;Thank you!&lt;/P&gt;</description>
      <pubDate>Sat, 29 Jul 2017 21:15:59 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Accept-Hosted-PHP-Implementation/m-p/59048#M33649</guid>
      <dc:creator>shackrock</dc:creator>
      <dc:date>2017-07-29T21:15:59Z</dc:date>
    </item>
    <item>
      <title>Re: Accept Hosted PHP Implementation</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Accept-Hosted-PHP-Implementation/m-p/59050#M33651</link>
      <description>&lt;P&gt;Very good. Below is an example of the form posting to the SandBox targeting&amp;nbsp;an iframe.&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&amp;lt;form target="payframe" id="send_hptoken" action="https://test.authorize.net/payment/payment" method="post"&amp;gt;
&amp;lt;input type="hidden" name="token" value="PUT_YOUR_TOKEN_HERE"/&amp;gt;&amp;lt;input type="submit" value="Get Accept Hosted page"/&amp;gt;
&amp;lt;/form&amp;gt;

&amp;lt;iframe style="height:700px;width:100%;border-style: none;" name="payframe" id="payframe"&amp;gt;&amp;lt;/iframe&amp;gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 29 Jul 2017 22:41:07 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Accept-Hosted-PHP-Implementation/m-p/59050#M33651</guid>
      <dc:creator>NexusSoftware</dc:creator>
      <dc:date>2017-07-29T22:41:07Z</dc:date>
    </item>
    <item>
      <title>Re: Accept Hosted PHP Implementation</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Accept-Hosted-PHP-Implementation/m-p/59052#M33653</link>
      <description>&lt;P&gt;Hm, so I guess I'm wondering why I would have my users click a button that says "get accept hosted page" - instead of just displaying the form for them to enter their info in immediately? &amp;nbsp;Am I missing the point here, or can I bypass this step for the user and show them the payment screen immediately?&lt;/P&gt;</description>
      <pubDate>Sun, 30 Jul 2017 02:28:38 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Accept-Hosted-PHP-Implementation/m-p/59052#M33653</guid>
      <dc:creator>shackrock</dc:creator>
      <dc:date>2017-07-30T02:28:38Z</dc:date>
    </item>
    <item>
      <title>Re: Accept Hosted PHP Implementation</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Accept-Hosted-PHP-Implementation/m-p/59053#M33654</link>
      <description>&lt;P&gt;You could easily check for a token with Jquery and if found, automatically submit the form :&lt;/P&gt;&lt;PRE&gt; &amp;lt;form id="frmGetPayment" target="payframe" id="send_hptoken" action="https://test.authorize.net/payment/payment" method="post"&amp;gt;
&amp;lt;input id="token" type="hidden" name="token" value=""&amp;gt;&amp;lt;input type="submit" id="btnGetPage" value="Get Accept Hosted page"&amp;gt;
&amp;lt;/form&amp;gt;
&amp;lt;iframe style="width:100%;border-style: none;" name="payframe" id="payframe"&amp;gt;&amp;lt;/iframe&amp;gt;
&amp;lt;script&amp;gt;
window.onload = function(){
    var token = $('#token').val();
          if (token &amp;gt; 0) {
            $('#frmGetPayment').submit();
        } else {
         alert("No token");
        }
         }
    &amp;lt;/script&amp;gt;&lt;/PRE&gt;&lt;P&gt;&lt;IMG src="https://nexwebhost.com/images/we-dont-need-no-stinking-badges-tokens-we-dont-need-no-stinking-tokens.jpg" border="0" alt="" width="406" height="300" /&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 30 Jul 2017 04:13:58 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Accept-Hosted-PHP-Implementation/m-p/59053#M33654</guid>
      <dc:creator>NexusSoftware</dc:creator>
      <dc:date>2017-07-30T04:13:58Z</dc:date>
    </item>
    <item>
      <title>Re: Accept Hosted PHP Implementation</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Accept-Hosted-PHP-Implementation/m-p/59054#M33655</link>
      <description>&lt;P&gt;What if I don't want to relay on jquery/javascript - is it possible to CURL the post in an expected format for authorize.net - and then take the HTML response and print that to any part of the page I want, for example? &amp;nbsp;Any sample code for this available?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!!&lt;/P&gt;</description>
      <pubDate>Sun, 30 Jul 2017 10:52:12 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Accept-Hosted-PHP-Implementation/m-p/59054#M33655</guid>
      <dc:creator>shackrock</dc:creator>
      <dc:date>2017-07-30T10:52:12Z</dc:date>
    </item>
    <item>
      <title>Re: Accept Hosted PHP Implementation</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Accept-Hosted-PHP-Implementation/m-p/59055#M33656</link>
      <description>&lt;P&gt;No. You neeed to post the token to&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sandbox: &lt;A href="https://test.authorize.net/payment/payment" target="_blank"&gt;https://test.authorize.net/payment/payment&lt;/A&gt;&lt;BR /&gt;or&lt;BR /&gt;Production: &lt;A href="https://accept.authorize.net/payment/payment" target="_blank"&gt;https://accept.authorize.net/payment/payment&lt;/A&gt;&lt;BR /&gt;as the case may be, in order to retrieve the hosted payment form. Writing the HTML results would defeat the purpose of using a hosted form.&lt;/P&gt;</description>
      <pubDate>Sun, 30 Jul 2017 11:18:25 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Accept-Hosted-PHP-Implementation/m-p/59055#M33656</guid>
      <dc:creator>NexusSoftware</dc:creator>
      <dc:date>2017-07-30T11:18:25Z</dc:date>
    </item>
    <item>
      <title>Re: Accept Hosted PHP Implementation</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Accept-Hosted-PHP-Implementation/m-p/59056#M33657</link>
      <description>&lt;P&gt;Ah, I see - so this is the method to get it to load an iframe from YOUR server, that makes sense to me now. &amp;nbsp;Thanks for the help... will see if I can finalize this and if I have any further questions. &amp;nbsp;Appreciate it!&lt;/P&gt;</description>
      <pubDate>Sun, 30 Jul 2017 11:38:38 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Accept-Hosted-PHP-Implementation/m-p/59056#M33657</guid>
      <dc:creator>shackrock</dc:creator>
      <dc:date>2017-07-30T11:38:38Z</dc:date>
    </item>
    <item>
      <title>Re: Accept Hosted PHP Implementation</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Accept-Hosted-PHP-Implementation/m-p/59193#M33790</link>
      <description>&lt;P&gt;Back again. &amp;nbsp;I am having an issue that whenever the form is loaded it loads in a very skinny (height) window with a scroll bar. &amp;nbsp;Please see screenshot:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://ip1.i.lithium.com/c413f40fcb5713bdbaa2ad246fa170c6734dff76/687474703a2f2f692e696d6775722e636f6d2f4b4273636d76772e706e67" border="0" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is this common, is there a simple fix for this?&lt;/P&gt;</description>
      <pubDate>Fri, 04 Aug 2017 21:24:36 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Accept-Hosted-PHP-Implementation/m-p/59193#M33790</guid>
      <dc:creator>shackrock</dc:creator>
      <dc:date>2017-08-04T21:24:36Z</dc:date>
    </item>
    <item>
      <title>Re: Accept Hosted PHP Implementation</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Accept-Hosted-PHP-Implementation/m-p/59194#M33791</link>
      <description>&lt;P&gt;Just style your iframe with height and width attributes like the following:&lt;/P&gt;&lt;PRE&gt;&amp;lt;iframe id="payframe" name="payframe" style="height:800px;width:100%;border-style:none;"&amp;gt;&amp;lt;/iframe&amp;gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Aug 2017 22:41:02 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Accept-Hosted-PHP-Implementation/m-p/59194#M33791</guid>
      <dc:creator>NexusSoftware</dc:creator>
      <dc:date>2017-08-04T22:41:02Z</dc:date>
    </item>
    <item>
      <title>Re: Accept Hosted PHP Implementation</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Accept-Hosted-PHP-Implementation/m-p/60524#M35049</link>
      <description>&lt;P&gt;Hi, I was wondering if anyone here knows if this is applicable to integrating the API into a joomla site that is already live? I have FTP access but reading through the github documentation for the php sdk is confusing me as I do not have php experience in general and do not understand the whole composer thing, it seems to me that it applies to developing a solution locally and I am not doing that. Please if anyone has any insight as to how I might accomplish this I would appreciate it. All I am trying to do is redirect my users to the Authorize.Net payment gateway upon a form submission.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Nov 2017 15:47:51 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Accept-Hosted-PHP-Implementation/m-p/60524#M35049</guid>
      <dc:creator>QHunt</dc:creator>
      <dc:date>2017-11-15T15:47:51Z</dc:date>
    </item>
    <item>
      <title>Re: Accept Hosted PHP Implementation</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Accept-Hosted-PHP-Implementation/m-p/60525#M35050</link>
      <description>&lt;P&gt;Hello &lt;a href="https://community.developer.cybersource.com/t5/user/viewprofilepage/user-id/22608"&gt;@QHunt&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you are not interested in building your own solution, there are extensions for Joomla, that may work for you, one of which is at&amp;nbsp;&lt;A href="https://extensions.joomla.org/extension/pay-my-bill-authorize-net/" target="_blank"&gt;https://extensions.joomla.org/extension/pay-my-bill-authorize-net/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Nov 2017 16:52:48 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Accept-Hosted-PHP-Implementation/m-p/60525#M35050</guid>
      <dc:creator>NexusSoftware</dc:creator>
      <dc:date>2017-11-15T16:52:48Z</dc:date>
    </item>
  </channel>
</rss>

