<?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: In-Person SDK Windows: implementation of Void and Refund in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/In-Person-SDK-Windows-implementation-of-Void-and-Refund/m-p/76078#M47493</link>
    <description>&lt;DIV class="votecell post-layout--left"&gt;&lt;DIV class="js-voting-container grid jc-center fd-column ai-stretch gs4 fc-black-200"&gt;&lt;DIV class="js-vote-count grid--cell fc-black-500 fs-title grid fd-column ai-center"&gt;&lt;SPAN&gt;I was able to Void a transaction by bypassing the In-Person SDK altogether, and following the approach shown in:&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://developer.authorize.net/api/reference/index.html#payment-transactions-void-a-transaction" target="_blank" rel="nofollow noopener noreferrer"&gt;https://developer.authorize.net/api/reference/index.html#payment-transactions-void-a-transaction.&lt;/A&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class="answercell post-layout--right"&gt;&lt;DIV class="s-prose js-post-body"&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, I am still unable to to implement Refund.&lt;/P&gt;&lt;P&gt;I first used the approach in&amp;nbsp;&lt;BR /&gt;&lt;A href="https://developer.authorize.net/api/reference/index.html#payment-transactions-refund-a-transaction" target="_blank" rel="noopener"&gt;https://developer.authorize.net/api/reference/index.html#payment-transactions-refund-a-transaction&lt;/A&gt;&lt;/P&gt;&lt;P&gt;and got the response that the Merchant Account was not authorized for this transaction.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Next I tried the code below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;ApiOperationBase&amp;lt;ANetApiRequest, ANetApiResponse&amp;gt;.RunEnvironment = this.sdkEnvironment;

transactionRequestType transaction = new transactionRequestType()
{
  transactionType = transactionTypeEnum.refundTransaction.ToString(),
  amount = 1.0m,
  refTransId = "&amp;lt;original transactionID&amp;gt;",

  transactionSettings = new settingType[] {
  },
  retail = new transRetailInfoType()
  {
	deviceType = "5", 
	marketType = "2",
  },
};
transaction.terminalNumber = this.terminalID;
request = new createTransactionRequest()
{
  transactionRequest = transaction
};
request.merchantAuthentication = new merchantAuthenticationType()
{
  Item = this.sessionToken,
  mobileDeviceId = this.deviceID,
  ItemElementName = ItemChoiceType.sessionToken
};
this.launcher.startEMVTransaction(request, SDKTransactionType.REFUND, this);
   &lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, instead of refunding the transaction, it charged the card anew for the amount that I had specified.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any assistance would be welcome.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Fri, 30 Apr 2021 21:58:50 GMT</pubDate>
    <dc:creator>Giri</dc:creator>
    <dc:date>2021-04-30T21:58:50Z</dc:date>
    <item>
      <title>In-Person SDK Windows: implementation of Void and Refund</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/In-Person-SDK-Windows-implementation-of-Void-and-Refund/m-p/75928#M47397</link>
      <description>&lt;P&gt;I have an application that uses the In-Person SDK (using a bbpos reader) to charge credit cards.&lt;/P&gt;&lt;P&gt;However, I am unable to implement the Void and Refund transactions.&lt;BR /&gt;When creating the request, I set&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;transactionRequestType transaction = new transactionRequestType()&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp; &amp;nbsp; transactionType = transactionTypeEnum.&lt;STRONG&gt;voidTransaction&lt;/STRONG&gt;.ToString(),&lt;BR /&gt;&amp;nbsp; &amp;nbsp; refTransId = "&amp;lt;my transaction Id&amp;gt;"&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried invoking each of the following with&amp;nbsp;&lt;STRONG&gt;SDKTransactionType.VOID&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;(1) startQuickChipTransaction&lt;/P&gt;&lt;P&gt;(2) startQuickChipWithoutUI&amp;nbsp;&lt;/P&gt;&lt;P&gt;(3) startEMVTransaction&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;None of the 3 above options worked.&lt;/P&gt;&lt;P&gt;I do not find any documentation anywhere regarding this.&lt;BR /&gt;Any help would be appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Apr 2021 23:45:48 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/In-Person-SDK-Windows-implementation-of-Void-and-Refund/m-p/75928#M47397</guid>
      <dc:creator>Giri</dc:creator>
      <dc:date>2021-04-22T23:45:48Z</dc:date>
    </item>
    <item>
      <title>Re: In-Person SDK Windows: implementation of Void and Refund</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/In-Person-SDK-Windows-implementation-of-Void-and-Refund/m-p/76078#M47493</link>
      <description>&lt;DIV class="votecell post-layout--left"&gt;&lt;DIV class="js-voting-container grid jc-center fd-column ai-stretch gs4 fc-black-200"&gt;&lt;DIV class="js-vote-count grid--cell fc-black-500 fs-title grid fd-column ai-center"&gt;&lt;SPAN&gt;I was able to Void a transaction by bypassing the In-Person SDK altogether, and following the approach shown in:&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://developer.authorize.net/api/reference/index.html#payment-transactions-void-a-transaction" target="_blank" rel="nofollow noopener noreferrer"&gt;https://developer.authorize.net/api/reference/index.html#payment-transactions-void-a-transaction.&lt;/A&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class="answercell post-layout--right"&gt;&lt;DIV class="s-prose js-post-body"&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, I am still unable to to implement Refund.&lt;/P&gt;&lt;P&gt;I first used the approach in&amp;nbsp;&lt;BR /&gt;&lt;A href="https://developer.authorize.net/api/reference/index.html#payment-transactions-refund-a-transaction" target="_blank" rel="noopener"&gt;https://developer.authorize.net/api/reference/index.html#payment-transactions-refund-a-transaction&lt;/A&gt;&lt;/P&gt;&lt;P&gt;and got the response that the Merchant Account was not authorized for this transaction.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Next I tried the code below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;ApiOperationBase&amp;lt;ANetApiRequest, ANetApiResponse&amp;gt;.RunEnvironment = this.sdkEnvironment;

transactionRequestType transaction = new transactionRequestType()
{
  transactionType = transactionTypeEnum.refundTransaction.ToString(),
  amount = 1.0m,
  refTransId = "&amp;lt;original transactionID&amp;gt;",

  transactionSettings = new settingType[] {
  },
  retail = new transRetailInfoType()
  {
	deviceType = "5", 
	marketType = "2",
  },
};
transaction.terminalNumber = this.terminalID;
request = new createTransactionRequest()
{
  transactionRequest = transaction
};
request.merchantAuthentication = new merchantAuthenticationType()
{
  Item = this.sessionToken,
  mobileDeviceId = this.deviceID,
  ItemElementName = ItemChoiceType.sessionToken
};
this.launcher.startEMVTransaction(request, SDKTransactionType.REFUND, this);
   &lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, instead of refunding the transaction, it charged the card anew for the amount that I had specified.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any assistance would be welcome.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 30 Apr 2021 21:58:50 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/In-Person-SDK-Windows-implementation-of-Void-and-Refund/m-p/76078#M47493</guid>
      <dc:creator>Giri</dc:creator>
      <dc:date>2021-04-30T21:58:50Z</dc:date>
    </item>
  </channel>
</rss>

