<?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: PayPal Capture of Prior Auth Failing with transaction not found in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/PayPal-Capture-of-Prior-Auth-Failing-with-transaction-not-found/m-p/61827#M36227</link>
    <description>&lt;P&gt;If you want to auth first and capture later the flow would be:&lt;/P&gt;&lt;P&gt;1. authOnlyTransaction&lt;/P&gt;&lt;P&gt;2. authOnlyContinueTransaction&lt;/P&gt;&lt;P&gt;3. priorAuthCaptureTransaction&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 23 Feb 2018 20:36:09 GMT</pubDate>
    <dc:creator>mmcguire</dc:creator>
    <dc:date>2018-02-23T20:36:09Z</dc:date>
    <item>
      <title>PayPal Capture of Prior Auth Failing with transaction not found</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/PayPal-Capture-of-Prior-Auth-Failing-with-transaction-not-found/m-p/61809#M36209</link>
      <description>&lt;P&gt;I am trying to integrate a PayPal Checkout Express solution, and I am successfully able to receive an authorization, send the customer off to PayPal, and receive back the information. However, when I try to capture this payment, I keep getting transaction not found. I can't for the life of me figure out why. I am supplying back the refTransId, which is the only thing I can see in that entire json to be passed that might identify the transaction. That's if I include the refTransId as a child of transactionRequest. However, the documentation in the api looks like it needs to be directly a child of createTransactionRequest - but when I supply it that way, it gives the error '&lt;SPAN&gt;The element 'createTransactionRequest' in namespace 'AnetApi/xml/v1/schema/AnetApiSchema.xsd' has invalid child element 'refTransId' in namespace 'AnetApi/xml/v1/schema/AnetApiSchema.xsd'. Which is strange because I'm using JSON, not XML.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Any ideas what would cause this problem, or where I'm properly supposed to nest the refTransId in my JSON? This is a priorAuthCaptureTransaction for PayPal.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Feb 2018 15:45:22 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/PayPal-Capture-of-Prior-Auth-Failing-with-transaction-not-found/m-p/61809#M36209</guid>
      <dc:creator>JChalek</dc:creator>
      <dc:date>2018-02-22T15:45:22Z</dc:date>
    </item>
    <item>
      <title>Re: PayPal Capture of Prior Auth Failing with transaction not found</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/PayPal-Capture-of-Prior-Auth-Failing-with-transaction-not-found/m-p/61810#M36210</link>
      <description>&lt;P&gt;If it helps, here is the structure in php before I convert it to JSON that I pass when I get the transaction not found error:&lt;/P&gt;&lt;PRE&gt;$json = [
			'createTransactionRequest' =&amp;gt; [
				'merchantAuthentication' =&amp;gt; [
					'name' =&amp;gt; $this-&amp;gt;apiPublicKey,
					'transactionKey' =&amp;gt; $this-&amp;gt;apiSecretKey,
				],
				'refId' =&amp;gt; $order['Order']['source_id'],
				'transactionRequest' =&amp;gt; [
					'transactionType' =&amp;gt; 'priorAuthCaptureTransaction',
					'refTransId' =&amp;gt; $order['Order']['charge_id']
				]
			]
		];&lt;/PRE&gt;&lt;P&gt;And here's the php before I convert it to JSON that I pass that gives me the invalid child element error:&lt;/P&gt;&lt;PRE&gt;$json = [
			'createTransactionRequest' =&amp;gt; [
				'merchantAuthentication' =&amp;gt; [
					'name' =&amp;gt; $this-&amp;gt;apiPublicKey,
					'transactionKey' =&amp;gt; $this-&amp;gt;apiSecretKey,
				],
				'refId' =&amp;gt; $order['Order']['source_id'],
				'transactionRequest' =&amp;gt; [
					'transactionType' =&amp;gt; 'priorAuthCaptureTransaction'
				],
				'refTransId' =&amp;gt; $order['Order']['charge_id']
			]
		];&lt;/PRE&gt;</description>
      <pubDate>Thu, 22 Feb 2018 15:58:36 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/PayPal-Capture-of-Prior-Auth-Failing-with-transaction-not-found/m-p/61810#M36210</guid>
      <dc:creator>JChalek</dc:creator>
      <dc:date>2018-02-22T15:58:36Z</dc:date>
    </item>
    <item>
      <title>Re: PayPal Capture of Prior Auth Failing with transaction not found</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/PayPal-Capture-of-Prior-Auth-Failing-with-transaction-not-found/m-p/61826#M36226</link>
      <description>&lt;P&gt;OK, in case anyone else ever comes across this problem trying to do a PayPal implementation, I found the solution. Instead of using AuthOnly and then Capture, I had to use AuthAndCapture followed by AuthAndCaptureContinued. Then everything worked. I wish the api documentation were clearer on which things one has to use to get stuff to work.&lt;/P&gt;</description>
      <pubDate>Fri, 23 Feb 2018 17:18:10 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/PayPal-Capture-of-Prior-Auth-Failing-with-transaction-not-found/m-p/61826#M36226</guid>
      <dc:creator>JChalek</dc:creator>
      <dc:date>2018-02-23T17:18:10Z</dc:date>
    </item>
    <item>
      <title>Re: PayPal Capture of Prior Auth Failing with transaction not found</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/PayPal-Capture-of-Prior-Auth-Failing-with-transaction-not-found/m-p/61827#M36227</link>
      <description>&lt;P&gt;If you want to auth first and capture later the flow would be:&lt;/P&gt;&lt;P&gt;1. authOnlyTransaction&lt;/P&gt;&lt;P&gt;2. authOnlyContinueTransaction&lt;/P&gt;&lt;P&gt;3. priorAuthCaptureTransaction&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Feb 2018 20:36:09 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/PayPal-Capture-of-Prior-Auth-Failing-with-transaction-not-found/m-p/61827#M36227</guid>
      <dc:creator>mmcguire</dc:creator>
      <dc:date>2018-02-23T20:36:09Z</dc:date>
    </item>
  </channel>
</rss>

