<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.0.1" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>Gravity Support Forums Topic: Paypal Transaction ID on confirmation page</title>
		<link>https://legacy.forums.gravityhelp.com/topic/paypal-transaction-id-on-confirmation-page</link>
		<description>Gravity Support Forums Topic: Paypal Transaction ID on confirmation page</description>
		<language>en-US</language>
		<pubDate>Sun, 19 Apr 2026 23:49:11 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.0.1</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>https://legacy.forums.gravityhelp.com/search.php</link>
		</textInput>
		<atom:link href="https://legacy.forums.gravityhelp.com/rss/topic/paypal-transaction-id-on-confirmation-page" rel="self" type="application/rss+xml" />

		<item>
			<title>simalam on "Paypal Transaction ID on confirmation page"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/paypal-transaction-id-on-confirmation-page#post-138721</link>
			<pubDate>Fri, 01 Feb 2013 14:28:03 +0000</pubDate>
			<dc:creator>simalam</dc:creator>
			<guid isPermaLink="false">138721@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;After some more digging around and reading the code, I managed to figure out how to do this. The transaction ID was in the $lead variable used in 'gform_replace_merge_tags'.&#60;/p&#62;
&#60;p&#62;It was also returning null for me because I was running the site on the different port than port 80. Changed the site to port 80 and was able to print out the transaction ID with the following code. Thanks for getting me in the right direction Chris!&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;add_filter(&#38;#39;gform_replace_merge_tags&#38;#39;, &#38;#39;replace_transaction_id&#38;#39;, 10, 7);
function replace_transaction_id($text, $form, $lead, $url_encode, $esc_html, $nl2br, $format) {

	  $custom_merge_tag = &#38;#39;{txn_id}&#38;#39;;

	  if(strpos($text, $custom_merge_tag) === false)
	    return $text;

	  $transaction_id = $lead[&#38;quot;transaction_id&#38;quot;];
	  $text = str_replace($custom_merge_tag, $transaction_id, $text);

	  return $text;
}&#60;/code&#62;&#60;/pre&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "Paypal Transaction ID on confirmation page"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/paypal-transaction-id-on-confirmation-page#post-137999</link>
			<pubDate>Thu, 31 Jan 2013 23:34:05 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">137999@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I think the approach will be the same, but the variable names will be different.  Something has to return [txn_id].  What did you find when looking through the code?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>simalam on "Paypal Transaction ID on confirmation page"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/paypal-transaction-id-on-confirmation-page#post-137556</link>
			<pubDate>Thu, 31 Jan 2013 12:39:25 +0000</pubDate>
			<dc:creator>simalam</dc:creator>
			<guid isPermaLink="false">137556@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hello,&#60;/p&#62;
&#60;p&#62;I wasn't able to get this to work.&#60;/p&#62;
&#60;p&#62;The GFPayPal class does not have a $transaction_response variable. I looked through the code to see if there is anything else I was able to use but wasn't able to find anything.&#60;/p&#62;
&#60;p&#62;Do you have any other suggestions? &#60;/p&#62;
&#60;p&#62;We are creating a &#34;Gift certificate&#34; form and once returned would like to display the transaction id on a printable gift certificate so the company is able to check to see if the gift certificate has a valid transaction ID
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "Paypal Transaction ID on confirmation page"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/paypal-transaction-id-on-confirmation-page#post-137343</link>
			<pubDate>Thu, 31 Jan 2013 08:15:09 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">137343@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I think it would be possible to get the transaction ID after the visitor returns from PayPal using an approach similar to the one I described here using a custom merge tag: &#60;a href=&#34;http://www.gravityhelp.com/forums/topic/authorization-code-passed-to-email#post-137339&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityhelp.com/forums/topic/authorization-code-passed-to-email#post-137339&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;In PayPal Standard, the transaction ID is called txn_id, so you could create a merge tag {txn_id} and use the same approach as I described there.&#60;/p&#62;
&#60;p&#62;It looks like all this information is available when the IPN is returned:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;[mc_gross]
[invoice]
[protection_eligibility]
[payer_id]
[tax]
[payment_date]
[payment_status]
[charset]
[first_name]
[mc_fee]
[notify_version]
[custom]
[payer_status]
[business]
[quantity]
[verify_sign]
[payer_email]
[memo]
[txn_id]
[payment_type]
[payer_business_name]
[last_name]
[receiver_email]
[payment_fee]
[receiver_id]
[txn_type]
[item_name]
[mc_currency]
[item_number]
[residence_country]
[transaction_subject]
[payment_gross]
[ipn_track_id]&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;It's possible your transactions will have greater or fewer pieces of information I suppose.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>simalam on "Paypal Transaction ID on confirmation page"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/paypal-transaction-id-on-confirmation-page#post-136625</link>
			<pubDate>Wed, 30 Jan 2013 15:29:11 +0000</pubDate>
			<dc:creator>simalam</dc:creator>
			<guid isPermaLink="false">136625@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hello,&#60;/p&#62;
&#60;p&#62;Is it possible to display the transaction id after the user has returned to the site. I didn't see any options for results from Paypal in the confirmation tab.&#60;/p&#62;
&#60;p&#62;Are there any hooks/filters I can use to get this information displayed, if so, what other information can you display about the transaction result&#60;/p&#62;
&#60;p&#62;Thanks!
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
