<?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.js - clientKey and apiLoginID inside Javascript in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Accept-js-clientKey-and-apiLoginID-inside-Javascript/m-p/55714#M30557</link>
    <description>&lt;P&gt;The client key is considered a public or publishable identifier, it's not actually an authentication credential so there is no issue with it being embedded in a javascript application, mobile app, etc. &amp;nbsp;The payment nonce returned from our Accept.js library is of no value to anyone other than the caller who requested it, it can only be used with a fully authenticated call like createTransaction or createCustomerPaymentProfile which require your full (secret) API authentication credentials. &amp;nbsp;Hope that makes sense and thanks for the question.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 12 Sep 2016 16:46:00 GMT</pubDate>
    <dc:creator>brianmc</dc:creator>
    <dc:date>2016-09-12T16:46:00Z</dc:date>
    <item>
      <title>Accept.js - clientKey and apiLoginID inside Javascript</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Accept-js-clientKey-and-apiLoginID-inside-Javascript/m-p/55712#M30555</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;on my&amp;nbsp;website I use code provided by your example:&lt;/P&gt;&lt;P&gt;&lt;A href="https://developer.authorize.net/api/reference/features/acceptjs.html" target="_blank"&gt;https://developer.authorize.net/api/reference/features/acceptjs.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;There are also those lines:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;authData.clientKey = '6WrfHGS76gHW3v7btBCE3HuuBukej96Ztfn5R32G5ep42vne7MCWZtAucY';&lt;BR /&gt;authData.apiLoginID = 'my_api_login_id';&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Of course, I'm using my details.&lt;/P&gt;&lt;P&gt;Question is - is it secure to use clientKey and apiLoginID on that way? With other words,&amp;nbsp;everybody can see those values - can they be misused?&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Mon, 12 Sep 2016 06:25:59 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Accept-js-clientKey-and-apiLoginID-inside-Javascript/m-p/55712#M30555</guid>
      <dc:creator>zamiksica123</dc:creator>
      <dc:date>2016-09-12T06:25:59Z</dc:date>
    </item>
    <item>
      <title>Re: Accept.js - clientKey and apiLoginID inside Javascript</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Accept-js-clientKey-and-apiLoginID-inside-Javascript/m-p/55714#M30557</link>
      <description>&lt;P&gt;The client key is considered a public or publishable identifier, it's not actually an authentication credential so there is no issue with it being embedded in a javascript application, mobile app, etc. &amp;nbsp;The payment nonce returned from our Accept.js library is of no value to anyone other than the caller who requested it, it can only be used with a fully authenticated call like createTransaction or createCustomerPaymentProfile which require your full (secret) API authentication credentials. &amp;nbsp;Hope that makes sense and thanks for the question.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Sep 2016 16:46:00 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Accept-js-clientKey-and-apiLoginID-inside-Javascript/m-p/55714#M30557</guid>
      <dc:creator>brianmc</dc:creator>
      <dc:date>2016-09-12T16:46:00Z</dc:date>
    </item>
    <item>
      <title>Re: Accept.js - clientKey and apiLoginID inside Javascript</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Accept-js-clientKey-and-apiLoginID-inside-Javascript/m-p/55716#M30559</link>
      <description>&lt;P&gt;OK as I understand it is safe to use clientKey and LoginID inside JavaScript?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you please tell me regarding TransactionKey. I have not access to server Environment variables so instead of:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;$loginId = getenv("API_LOGIN_ID");
$transactionKey = getenv("TRANSACTION_KEY");&lt;/PRE&gt;&lt;P&gt;I'm using:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;$loginId = 'myloginid';
$transactionKey = 'myTransactionKey';&lt;/PRE&gt;&lt;P&gt;in my transactionCaller.php&lt;/P&gt;&lt;P&gt;Is that safe? Can I have any problem if I declare transactionKey inside my PHP file?&lt;/P&gt;&lt;P&gt;Tahnk you for help.&lt;/P&gt;</description>
      <pubDate>Mon, 12 Sep 2016 18:41:42 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Accept-js-clientKey-and-apiLoginID-inside-Javascript/m-p/55716#M30559</guid>
      <dc:creator>zamiksica123</dc:creator>
      <dc:date>2016-09-12T18:41:42Z</dc:date>
    </item>
    <item>
      <title>Re: Accept.js - clientKey and apiLoginID inside Javascript</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Accept-js-clientKey-and-apiLoginID-inside-Javascript/m-p/55723#M30565</link>
      <description>&lt;P&gt;Could someone from support answer on this question, please.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Sep 2016 18:40:23 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Accept-js-clientKey-and-apiLoginID-inside-Javascript/m-p/55723#M30565</guid>
      <dc:creator>zamiksica123</dc:creator>
      <dc:date>2016-09-13T18:40:23Z</dc:date>
    </item>
    <item>
      <title>Re: Accept.js - clientKey and apiLoginID inside Javascript</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Accept-js-clientKey-and-apiLoginID-inside-Javascript/m-p/55724#M30566</link>
      <description>&lt;P&gt;&lt;a href="https://community.developer.cybersource.com/t5/user/viewprofilepage/user-id/20471"&gt;@zamiksica123﻿&lt;/a&gt;&amp;nbsp;We can confirm that your transaction key must be securely stored if used and should never be made available to unauthorized users on your website.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Richard&lt;/P&gt;</description>
      <pubDate>Tue, 13 Sep 2016 19:06:36 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Accept-js-clientKey-and-apiLoginID-inside-Javascript/m-p/55724#M30566</guid>
      <dc:creator>RichardH</dc:creator>
      <dc:date>2016-09-13T19:06:36Z</dc:date>
    </item>
    <item>
      <title>Re: Accept.js - clientKey and apiLoginID inside Javascript</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Accept-js-clientKey-and-apiLoginID-inside-Javascript/m-p/55727#M30568</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;I'm using TransactionKey inside "transactionCaller.php"&amp;nbsp;file, like in your example:&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/AuthorizeNet/accept-sample-app/blob/master/transactionCaller.php" target="_blank"&gt;https://github.com/AuthorizeNet/accept-sample-app/blob/master/transactionCaller.php&lt;/A&gt;&lt;/P&gt;&lt;P&gt;That PHP file is called only by JavaScript&amp;amp;colon;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;	$.ajax({
		url: "transactionCaller.php",
		data: {amount: document.getElementById('amount').value, dataDesc: dataObj.dataDescriptor, dataValue: dataObj.dataValue},
		method: 'POST',
		timeout: 5000
              ...
	})&lt;/PRE&gt;&lt;P&gt;I presume that TransactionKey can not be read from PHP file?&lt;/P&gt;&lt;P&gt;What other option I have if I hav enot access to server?&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Sep 2016 19:45:40 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Accept-js-clientKey-and-apiLoginID-inside-Javascript/m-p/55727#M30568</guid>
      <dc:creator>zamiksica123</dc:creator>
      <dc:date>2016-09-13T19:45:40Z</dc:date>
    </item>
    <item>
      <title>Re: Accept.js - clientKey and apiLoginID inside Javascript</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Accept-js-clientKey-and-apiLoginID-inside-Javascript/m-p/55728#M30569</link>
      <description>&lt;P&gt;You're correct the transactionKey cannot be read inside the PHP file, it's not being served directly out to the browser client, PHP is a "server-side" web technology. &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That being said we would certainly recommend any level of abstraction/security you have at your disposal, e.g. platform secure variables (example would be Azure Application secure variables), a separate constants file (preferably encrypted), web stack server variables, etc as per web application best practices.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Sep 2016 20:53:53 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Accept-js-clientKey-and-apiLoginID-inside-Javascript/m-p/55728#M30569</guid>
      <dc:creator>brianmc</dc:creator>
      <dc:date>2016-09-13T20:53:53Z</dc:date>
    </item>
  </channel>
</rss>

