<?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: C# SDK - Is there a way to get a token? in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/C-SDK-Is-there-a-way-to-get-a-token/m-p/60112#M34678</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.developer.cybersource.com/t5/user/viewprofilepage/user-id/22421"&gt;@icible&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you clarify what you mean? The word "token" gets used a lot in payments, and even in our system, so it means different things in different contexts.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you give more information and specify what kind of token you're looking for?&lt;/P&gt;</description>
    <pubDate>Wed, 04 Oct 2017 17:27:38 GMT</pubDate>
    <dc:creator>Aaron</dc:creator>
    <dc:date>2017-10-04T17:27:38Z</dc:date>
    <item>
      <title>C# SDK - Is there a way to get a token?</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/C-SDK-Is-there-a-way-to-get-a-token/m-p/60110#M34676</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Using the C# SDK, is there a way to get a credit card token? Or I must make a basic HTTP call to:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://apitest.authorize.net/xml/v1/request.api/gettoken" target="_blank"&gt;https://apitest.authorize.net/xml/v1/request.api/gettoken&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;VB&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Oct 2017 14:57:53 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/C-SDK-Is-there-a-way-to-get-a-token/m-p/60110#M34676</guid>
      <dc:creator>icible</dc:creator>
      <dc:date>2017-10-04T14:57:53Z</dc:date>
    </item>
    <item>
      <title>Re: C# SDK - Is there a way to get a token?</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/C-SDK-Is-there-a-way-to-get-a-token/m-p/60112#M34678</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.developer.cybersource.com/t5/user/viewprofilepage/user-id/22421"&gt;@icible&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you clarify what you mean? The word "token" gets used a lot in payments, and even in our system, so it means different things in different contexts.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you give more information and specify what kind of token you're looking for?&lt;/P&gt;</description>
      <pubDate>Wed, 04 Oct 2017 17:27:38 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/C-SDK-Is-there-a-way-to-get-a-token/m-p/60112#M34678</guid>
      <dc:creator>Aaron</dc:creator>
      <dc:date>2017-10-04T17:27:38Z</dc:date>
    </item>
    <item>
      <title>Re: C# SDK - Is there a way to get a token?</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/C-SDK-Is-there-a-way-to-get-a-token/m-p/60114#M34680</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Accept.js creates a token from a credit card to later pass this token to a backend in order to make the payment.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Following this link (&lt;A href="https://community.developer.authorize.net/t5/Ideas/Test-Opaque-Token/idc-p/59455#M452" target="_blank"&gt;https://community.developer.authorize.net/t5/Ideas/Test-Opaque-Token/idc-p/59455#M452&lt;/A&gt;), there`s an example of how we can generate this token without using the Accept.js library. The URL provided in the link is the following, as stated in my previous message:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://apitest.authorize.net/xml/v1/request.api/gettoken" target="_blank"&gt;https://apitest.authorize.net/xml/v1/request.api/gettoken&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;So, in the C# sdk, is there a way to the that kind of token?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;VB&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Oct 2017 18:56:08 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/C-SDK-Is-there-a-way-to-get-a-token/m-p/60114#M34680</guid>
      <dc:creator>icible</dc:creator>
      <dc:date>2017-10-04T18:56:08Z</dc:date>
    </item>
    <item>
      <title>Re: C# SDK - Is there a way to get a token?</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/C-SDK-Is-there-a-way-to-get-a-token/m-p/60118#M34684</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.developer.cybersource.com/t5/user/viewprofilepage/user-id/22421"&gt;@icible&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Understood. In that thread you pointed to, the developer who responded posted some sample code that would live at /gettoken on their server, and then call&amp;nbsp;&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;. There is no&amp;nbsp;&lt;A href="https://apitest.authorize.net/xml/v1/request.api/gettoken&amp;nbsp;URL" target="_blank"&gt;https://apitest.authorize.net/xml/v1/request.api/gettoken&amp;nbsp;URL&lt;/A&gt; on our server.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Warning: What follows is not officially supported and can't be guaranteed to work forever&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That code is essentially doing the same thing you want to do, but without an SDK. You could do the same thing in C# by writing some code to open an HTTP session to&amp;nbsp;&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;, and POST a request for the token to that URL.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;The request to the token can be formatted in XML or JSON. If you wanted to do XML, that's detailed in &lt;A href="https://community.developer.authorize.net/t5/Integration-and-Testing/Accept-JS-and-Integration-Testing/m-p/57244#M31973" target="_blank"&gt;this thread&lt;/A&gt;. If you want to do JSON, like the thread you referenced, the POST would use a Content-Type: of application/json, and the actual body of the post (the request) would look something like this:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;{
    "securePaymentContainerRequest": {
        "merchantAuthentication": {
            "name": "{{loginId}}",
            "clientKey": "{{clientKey}}"
        },
        "refId": "12345",
        "data": {
            "type": "TOKEN",
            "id": "{{$guid}}",
            "token": {
                "cardNumber": "4007000000027",
                "expirationDate": "2033-12",
                "cardCode": "123",
                "zip": "84043",
                "fullName": "Testy McTestcard"
            }
        }
    }
}&lt;/PRE&gt;
&lt;P&gt;&lt;SPAN&gt;As far as using the SDK to make the request for you, that's not really possible. This isn't a public part of the API, but it's what Accept.js uses to generate the token (you'd see if you stepped through all of the JavaScript code). So, no controller for this request exists in the SDK.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Oct 2017 21:35:48 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/C-SDK-Is-there-a-way-to-get-a-token/m-p/60118#M34684</guid>
      <dc:creator>Aaron</dc:creator>
      <dc:date>2017-10-04T21:35:48Z</dc:date>
    </item>
    <item>
      <title>Re: C# SDK - Is there a way to get a token?</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/C-SDK-Is-there-a-way-to-get-a-token/m-p/60123#M34689</link>
      <description>&lt;P&gt;Hi!&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I misread the sample code so I thought /gettoken was part of Authorize.NET api call. Sorry for that.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But what`s funny is it works! If I issue the POST request to&amp;nbsp;/xml/v1/request.api/gettoken I get a valid response... Thus I really thought it was part of your URL.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ok then, I'll use a basic HTTP request to get a token. It`s usefull to get a token on the server side to do testing, so maybe you could consider adding it to a future version of the SDK!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;VB&lt;/P&gt;</description>
      <pubDate>Thu, 05 Oct 2017 14:25:32 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/C-SDK-Is-there-a-way-to-get-a-token/m-p/60123#M34689</guid>
      <dc:creator>icible</dc:creator>
      <dc:date>2017-10-05T14:25:32Z</dc:date>
    </item>
    <item>
      <title>Re: C# SDK - Is there a way to get a token?</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/C-SDK-Is-there-a-way-to-get-a-token/m-p/60124#M34690</link>
      <description>&lt;P&gt;&lt;a href="https://community.developer.cybersource.com/t5/user/viewprofilepage/user-id/22421"&gt;@icible&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You're absolutely right that it would be useful.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you poke around&amp;nbsp;our &lt;A href="https://community.developer.cybersource.com/t5/Ideas/idb-p/ideas" target="_self"&gt;Ideas Forum&lt;/A&gt; where others can take a look, contribute feedback, and vote for new features, you'll find this particular one has been submitted. Feel free to add your voice in support of this idea there.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Oct 2017 14:29:15 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/C-SDK-Is-there-a-way-to-get-a-token/m-p/60124#M34690</guid>
      <dc:creator>Aaron</dc:creator>
      <dc:date>2017-10-05T14:29:15Z</dc:date>
    </item>
  </channel>
</rss>

