<?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 and user reg. add ons, how to and where?</title>
		<link>https://legacy.forums.gravityhelp.com/topic/paypal-and-user-reg-add-ons-how-to-and-where</link>
		<description>Gravity Support Forums Topic: PayPal and user reg. add ons, how to and where?</description>
		<language>en-US</language>
		<pubDate>Sun, 05 Apr 2026 10:47:10 +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-and-user-reg-add-ons-how-to-and-where" rel="self" type="application/rss+xml" />

		<item>
			<title>Alex Cancado on "PayPal and user reg. add ons, how to and where?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/paypal-and-user-reg-add-ons-how-to-and-where#post-19532</link>
			<pubDate>Mon, 28 Feb 2011 12:04:07 +0000</pubDate>
			<dc:creator>Alex Cancado</dc:creator>
			<guid isPermaLink="false">19532@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Here we go.&#60;/p&#62;
&#60;p&#62;1.&#60;br /&#62;
The PayPal transactions are stored in a separate table. It is called wp_rg_paypal_transaction. It keeps all paypal transactions (i.e. payments, refunds, etc...)&#60;/p&#62;
&#60;p&#62;2.&#60;br /&#62;
PayPal transactions are added as notes for that entry, so you can view all transactions by going through the entry notes on the entry detail page.&#60;br /&#62;
To output all transactions in a different format, you would have to query the wp_rg_paypal_transaction table and manually output them.&#60;/p&#62;
&#60;p&#62;You add the &#34;Payment Status&#34;, &#34;Payment Amount&#34; and &#34;Payment Date&#34; columns to the entry grid. Simply click the edit link on the top right corner of the entry grid and drag those columns to the active list.&#60;/p&#62;
&#60;p&#62;3.&#60;br /&#62;
There is no easy function for you here, but it is possible to achieve what you need. If the user is logged in when submitting the form, the user_id is stored in the entry table (wp_rg_lead table, created_by column).&#60;br /&#62;
If you query the wp_rg_lead table where created_by = user_id, you will get all entries submitted by that user. You can then inspect the payment_status column to determine if the product has been paid and you can determine which product was purchased by the form_id.&#60;br /&#62;
If you need to get more information about which specific product was purchased, you can call RGFormsModel::get_lead($lead_id), where lead_id is the the ID column of the wp_rg_lead table. This will give you all the information about that entry.&#60;/p&#62;
&#60;p&#62;4.&#60;br /&#62;
There is no interface in the user profile for this. When a subscription is expired, the entry's payment status will be set to &#34;Expired&#34;. You can see that by adding the Payment Status to the entry grid, going to the entry detail page,&#60;br /&#62;
or manually querying the wp_rg_lead table for the specific user_id (similar to 3) and inspecting the payment_status column.&#60;/p&#62;
&#60;p&#62;5.&#60;br /&#62;
I have not had long delays with the test IPNs. They usually happen within a minute or two. If you are developing locally, however, the IPN just won't work since PayPal won't be able to reach &#60;a href=&#34;http://localhost/...&#34; rel=&#34;nofollow&#34;&#62;http://localhost/...&#60;/a&#62;.&#60;/p&#62;
&#60;p&#62;I hope this helps.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>obvio on "PayPal and user reg. add ons, how to and where?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/paypal-and-user-reg-add-ons-how-to-and-where#post-19398</link>
			<pubDate>Fri, 25 Feb 2011 11:54:27 +0000</pubDate>
			<dc:creator>obvio</dc:creator>
			<guid isPermaLink="false">19398@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;hi,&#60;br /&#62;
I've been playing with both and they're working pretty cool but I have a couple of questions so I'll better understand how this can be applied to my needs:&#60;/p&#62;
&#60;p&#62;1. where're the paypal transactions are stored? own table or as meta to a form/post submission?&#60;/p&#62;
&#60;p&#62;2. can I somehow output all the transactions? can the transaction status can be seen as a column in the entries table ui?&#60;/p&#62;
&#60;p&#62;3. say a registered user bought a product &#34;gold package&#34; (for example: gives him the ability to post 5 listings and mark 2 as &#34;top&#34; listing), how do I get the purchases (and their statuses) associated with this specific user? is there something like:&#60;br /&#62;
&#60;code&#62;get_user_purchase_history($user_id)&#60;/code&#62; for example?&#60;/p&#62;
&#60;p&#62;4. similar to 3, if a user bought a monthly subscription product, how do I access that info in relation to the user? how do I make sure it is still valid? is that shown somehow in the interface of the user profile?&#60;/p&#62;
&#60;p&#62;5. on general: when using ipn on test-mode with paypal test-site, does it take a while to get the confirmation back?&#60;/p&#62;
&#60;p&#62;I'll be happy to some code samples (or point me to which of the files contains those functions in the plugin).&#60;/p&#62;
&#60;p&#62;thanks!
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
