<?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: Authentication Failed when send API to sandbox in cybersource APIs</title>
    <link>https://community.developer.cybersource.com/t5/cybersource-APIs/Authentication-Failed-when-send-API-to-sandbox/m-p/90664#M1920</link>
    <description>&lt;P&gt;I am working on integrating the SubscriptionsApi using .net core. Below is the example code.&lt;/P&gt;&lt;P&gt;I am using Sandbox - apitest.cybersource.com. I verified the date and it is following the standard described in the developer guide.&lt;/P&gt;&lt;P&gt;SubscriptionsApi instance = new SubscriptionsApi(clientConfig);&lt;BR /&gt;var subresponse = await instance.CreateSubscriptionAsync(requestObj);&lt;BR /&gt;if (response != null)&lt;BR /&gt;{&lt;BR /&gt;status = subresponse.SubscriptionInformation.Status;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Exception:&amp;nbsp;CyberSource.Client.ApiException: 'Error calling CreateSubscription: {"response":{"rmsg":"Authentication Failed"}}'&lt;/P&gt;</description>
    <pubDate>Fri, 01 Nov 2024 21:24:48 GMT</pubDate>
    <dc:creator>mashwathappa</dc:creator>
    <dc:date>2024-11-01T21:24:48Z</dc:date>
    <item>
      <title>Authentication Failed when send API to sandbox</title>
      <link>https://community.developer.cybersource.com/t5/cybersource-APIs/Authentication-Failed-when-send-API-to-sandbox/m-p/90659#M1916</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I'm trying to check how the API works. I registered and try to send a request. So, I'm trying to send for example POST&amp;nbsp;&lt;A href="https://apitest.cybersource.com/pts/v2/payments" target="_blank"&gt;https://apitest.cybersource.com/pts/v2/payments&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;First I test API on the page&amp;nbsp;&lt;A href="https://developer.cybersource.com/api-reference-assets/index.html#payments_payments_process-a-payment_samplerequests-dropdown_simple-authorization-internet_liveconsole-tab-request-headers" target="_blank"&gt;https://developer.cybersource.com/api-reference-assets/index.html#payments_payments_process-a-payment_samplerequests-dropdown_simple-authorization-internet_liveconsole-tab-request-headers&lt;/A&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. Updated keys /credentials on the page&amp;nbsp;&lt;BR /&gt;2. Sent the request using my account&lt;BR /&gt;Worked fine.&lt;/P&gt;&lt;P&gt;Then, I tried to do the same using Postman:&lt;BR /&gt;1. Copied headers from the page above&amp;nbsp;&lt;BR /&gt;&amp;nbsp; &amp;nbsp;* hostapitest.cybersource.com&lt;BR /&gt;&amp;nbsp; &amp;nbsp;* signature keyid="30863dfc-54a2-49a3-***-7db45f770013", algorithm="HmacSHA256", headers="host v-c-date request-target&amp;nbsp; &amp;nbsp; &amp;nbsp; * digest v-c-merchant-id", signature="Ed9XMG2GmfvhfFeel9II+jfdb2x6zBwOqUOx***89A="&lt;BR /&gt;&amp;nbsp; &amp;nbsp;* digest SHA-256=cwjLNSMNo0IFp7hbUtTNu+7KxaF9O67******nQ7J5g=&lt;BR /&gt;&amp;nbsp; &amp;nbsp;* v-c-merchant-id prots_****1730368156&lt;BR /&gt;&amp;nbsp; &amp;nbsp;* v-c-date Fri, 01 Nov 2024 07:07:59 GMT&lt;BR /&gt;&amp;nbsp; &amp;nbsp;* Content-Type application/json&lt;BR /&gt;2. Pasted into postman request (also I used the collection&amp;nbsp;&lt;A href="https://documenter.getpostman.com/view/2960117/S17m1riA" target="_blank"&gt;https://documenter.getpostman.com/view/2960117/S17m1riA&lt;/A&gt;&amp;nbsp; provided by&amp;nbsp;cybersource)&lt;BR /&gt;Got Result&amp;nbsp; '&lt;SPAN&gt;Authentication Failed'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;As Alternative way, I wrote a simple .NET Console app and tried to send a request in the code (got from example&amp;nbsp;&lt;A href="https://github.com/CyberSource/cybersource-rest-samples-csharp/blob/master/Source/Samples/Authentication/StandAloneHttpSignature.cs" target="_blank"&gt;https://github.com/CyberSource/cybersource-rest-samples-csharp/blob/master/Source/Samples/Authentication/StandAloneHttpSignature.cs&lt;/A&gt;&amp;nbsp;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The result is the same&amp;nbsp;&amp;nbsp;'&lt;SPAN&gt;Authentication Failed'.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;What am I doing wrong ? Is there any additional configuration required ?&lt;/P&gt;</description>
      <pubDate>Fri, 01 Nov 2024 09:05:25 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/cybersource-APIs/Authentication-Failed-when-send-API-to-sandbox/m-p/90659#M1916</guid>
      <dc:creator>prots</dc:creator>
      <dc:date>2024-11-01T09:05:25Z</dc:date>
    </item>
    <item>
      <title>Re: Authentication Failed when send API to sandbox</title>
      <link>https://community.developer.cybersource.com/t5/cybersource-APIs/Authentication-Failed-when-send-API-to-sandbox/m-p/90664#M1920</link>
      <description>&lt;P&gt;I am working on integrating the SubscriptionsApi using .net core. Below is the example code.&lt;/P&gt;&lt;P&gt;I am using Sandbox - apitest.cybersource.com. I verified the date and it is following the standard described in the developer guide.&lt;/P&gt;&lt;P&gt;SubscriptionsApi instance = new SubscriptionsApi(clientConfig);&lt;BR /&gt;var subresponse = await instance.CreateSubscriptionAsync(requestObj);&lt;BR /&gt;if (response != null)&lt;BR /&gt;{&lt;BR /&gt;status = subresponse.SubscriptionInformation.Status;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Exception:&amp;nbsp;CyberSource.Client.ApiException: 'Error calling CreateSubscription: {"response":{"rmsg":"Authentication Failed"}}'&lt;/P&gt;</description>
      <pubDate>Fri, 01 Nov 2024 21:24:48 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/cybersource-APIs/Authentication-Failed-when-send-API-to-sandbox/m-p/90664#M1920</guid>
      <dc:creator>mashwathappa</dc:creator>
      <dc:date>2024-11-01T21:24:48Z</dc:date>
    </item>
  </channel>
</rss>

