<?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: Tracking Purchases</title>
		<link>https://legacy.forums.gravityhelp.com/topic/tracking-purchases</link>
		<description>Gravity Support Forums Topic: Tracking Purchases</description>
		<language>en-US</language>
		<pubDate>Tue, 21 Apr 2026 17:13:12 +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/tracking-purchases" rel="self" type="application/rss+xml" />

		<item>
			<title>Chris Hajer on "Tracking Purchases"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/tracking-purchases#post-96910</link>
			<pubDate>Thu, 29 Nov 2012 09:03:54 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">96910@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;If you need assistance after you go live, let us know.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Mike on "Tracking Purchases"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/tracking-purchases#post-96778</link>
			<pubDate>Wed, 28 Nov 2012 23:54:05 +0000</pubDate>
			<dc:creator>Mike</dc:creator>
			<guid isPermaLink="false">96778@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Thanks Chris!  The beta version worked and the hook is being triggered.  I have tested it with the PayPal in sandbox mode so far.  We will turn it on live over the next day or so but I do not expect it to have any issues.&#60;/p&#62;
&#60;p&#62;Thanks,&#60;br /&#62;
Mike
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "Tracking Purchases"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/tracking-purchases#post-94157</link>
			<pubDate>Wed, 21 Nov 2012 17:35:37 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">94157@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi Mike, the hook in the PayPal Pro add-on is called &#34;gform_paypalpro_fulfillment&#34; and following are all the parameters passed to it:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;[php]
do_action(&#38;quot;gform_paypalpro_fulfillment&#38;quot;, $entry, $config, $transaction_id, $initial_payment_amount, $subscription_amount);&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;This hook is not implemented in the version of the add-on which is available for download on the website.  I have the Beta 5 version which I can send to you if you like.  Please send me an email at  &#60;a href=&#34;mailto:chris@rocketgenius.com&#34;&#62;chris@rocketgenius.com&#60;/a&#62; and refer to this topic so I know what you're referring to when you email.  Thank you.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Mike on "Tracking Purchases"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/tracking-purchases#post-94029</link>
			<pubDate>Wed, 21 Nov 2012 10:43:09 +0000</pubDate>
			<dc:creator>Mike</dc:creator>
			<guid isPermaLink="false">94029@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Thanks for checking.  If this hook does not work with the PayPal Pro, is there a preferred way to track what users have bought for future sessions?&#60;/p&#62;
&#60;p&#62;Thanks,&#60;br /&#62;
Mike
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "Tracking Purchases"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/tracking-purchases#post-94015</link>
			<pubDate>Wed, 21 Nov 2012 10:09:36 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">94015@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I believe that hook is only available in the PayPal Standard Add-on.  I'll ask the development team if there is a way you can do this with the Pro add-on.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Mike on "Tracking Purchases"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/tracking-purchases#post-93790</link>
			<pubDate>Wed, 21 Nov 2012 00:03:41 +0000</pubDate>
			<dc:creator>Mike</dc:creator>
			<guid isPermaLink="false">93790@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I am trying to use the Pay Pal Pro plug in to let users purchase 3 different pieces of content on my site.  If the PayPal purchase goes through, I want to store the fact that they have made the purchase for future sessions.&#60;/p&#62;
&#60;p&#62;I thought I could just store the purchased content in the user meta fields when gform_paypal_fulfillment is triggered.  So far I am not having much luck.  I am not sure if the method is getting called or not.  &#60;/p&#62;
&#60;p&#62;Am I on the right track or is there a simplier/better way to track purchases associated with users?&#60;/p&#62;
&#60;p&#62;Here is the function I was using from functions.php:&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;add_action(&#38;quot;gform_paypal_fulfillment&#38;quot;, &#38;quot;process_order&#38;quot;, 10, 4);
function process_order($entry, $config, $transaction_id, $amount) {
    $user_id = get_current_user_id();
    if($user_id)
	{
	    $key = &#38;#39;boughtEthics&#38;#39;;
		$value = $entry[&#38;#39;3.3&#38;#39;];
		update_user_meta( $user_id, $key, $value);
	    $key = &#38;#39;boughtGeneralTax&#38;#39;;
		$value = $entry[&#38;#39;4.3&#38;#39;];
		update_user_meta( $user_id, $key, $value);
	    $key = &#38;#39;boughtCurrentTax&#38;#39;;
		$value = $entry[&#38;#39;5.3&#38;#39;];
		update_user_meta( $user_id, $key, $value);
	}
}&#60;/code&#62;&#60;/pre&#62;</description>
		</item>

	</channel>
</rss>
