<?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: Passing the Value to Paypal rather than the Label</title>
		<link>https://legacy.forums.gravityhelp.com/topic/passing-the-value-to-paypal-rather-than-the-label</link>
		<description>Gravity Support Forums Topic: Passing the Value to Paypal rather than the Label</description>
		<language>en-US</language>
		<pubDate>Mon, 20 Apr 2026 03:27: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/passing-the-value-to-paypal-rather-than-the-label" rel="self" type="application/rss+xml" />

		<item>
			<title>Carl Hancock on "Passing the Value to Paypal rather than the Label"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/passing-the-value-to-paypal-rather-than-the-label#post-89272</link>
			<pubDate>Fri, 09 Nov 2012 13:17:01 +0000</pubDate>
			<dc:creator>Carl Hancock</dc:creator>
			<guid isPermaLink="false">89272@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Closing this topic as user has opened up a Priority Support request.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "Passing the Value to Paypal rather than the Label"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/passing-the-value-to-paypal-rather-than-the-label#post-88532</link>
			<pubDate>Wed, 07 Nov 2012 20:15:56 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">88532@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;How would you like to proceed with troubleshooting this?  Since you are a developer license holder, you can open a &#60;a href=&#34;http://www.gravityhelp.com/priority-support/&#34; rel=&#34;nofollow&#34;&#62;priority support request&#60;/a&#62;, or we can try to troubleshoot here.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>bgatley on "Passing the Value to Paypal rather than the Label"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/passing-the-value-to-paypal-rather-than-the-label#post-88529</link>
			<pubDate>Wed, 07 Nov 2012 20:07:41 +0000</pubDate>
			<dc:creator>bgatley</dc:creator>
			<guid isPermaLink="false">88529@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Yes, the code is not live right now. And, yes, I still have problems. We have other forms on the site that I didn't want to be impacted by the code.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "Passing the Value to Paypal rather than the Label"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/passing-the-value-to-paypal-rather-than-the-label#post-88528</link>
			<pubDate>Wed, 07 Nov 2012 20:05:24 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">88528@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi Brian, this topic got lost for a little while.  I did not see a problem with the code, and when I did a test submission of your form, the request was sent to PayPal (the sandbox, when I checked it just now.) Are you still having trouble with this one?&#60;/p&#62;
&#60;p&#62;There was a strange delay before the spinner showed up, about 4 seconds, then the spinner showed up and the request was sent to PayPal.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>bgatley on "Passing the Value to Paypal rather than the Label"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/passing-the-value-to-paypal-rather-than-the-label#post-85807</link>
			<pubDate>Wed, 31 Oct 2012 14:18:43 +0000</pubDate>
			<dc:creator>bgatley</dc:creator>
			<guid isPermaLink="false">85807@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi Chris,&#60;/p&#62;
&#60;p&#62;I know you guys got slammed by the storm, but just want to check to see if you have had a chance to take a look at the code above?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>bgatley on "Passing the Value to Paypal rather than the Label"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/passing-the-value-to-paypal-rather-than-the-label#post-84341</link>
			<pubDate>Sat, 27 Oct 2012 20:12:40 +0000</pubDate>
			<dc:creator>bgatley</dc:creator>
			<guid isPermaLink="false">84341@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;The progress wheel in the form just spins and spins and nothing happens.&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://pastie.org/5125504&#34; rel=&#34;nofollow&#34;&#62;http://pastie.org/5125504&#60;/a&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "Passing the Value to Paypal rather than the Label"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/passing-the-value-to-paypal-rather-than-the-label#post-84334</link>
			<pubDate>Sat, 27 Oct 2012 19:50:01 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">84334@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;What happens instead of the submission going to PayPal?  &#60;/p&#62;
&#60;p&#62;Also, I notice a bunch of extra markup here.  Is that just from pasting or is that actually part of your code?  Can you post the code snippet above at pastebin.com or pastie.org please to preserve the formatting?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>bgatley on "Passing the Value to Paypal rather than the Label"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/passing-the-value-to-paypal-rather-than-the-label#post-84326</link>
			<pubDate>Sat, 27 Oct 2012 19:31:16 +0000</pubDate>
			<dc:creator>bgatley</dc:creator>
			<guid isPermaLink="false">84326@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I have tried to follow the discussion and code at:&#60;br /&#62;
&#60;a href=&#34;http://www.gravityhelp.com/forums/topic/sending-product-value-instead-of-label-to-paypal&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityhelp.com/forums/topic/sending-product-value-instead-of-label-to-paypal&#60;/a&#62;&#60;br /&#62;
and&#60;br /&#62;
&#60;a href=&#34;http://www.gravityhelp.com/documentation/page/Gform_paypal_query&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityhelp.com/documentation/page/Gform_paypal_query&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;But, I can't seem to get the code straight in my functions.php to pass the value instead of the label.&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://gracenetworkintl.org/donation/&#34; rel=&#34;nofollow&#34;&#62;http://gracenetworkintl.org/donation/&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;I tried the following code, but the form never goes to Paypal. &#60;/p&#62;
&#60;pre&#62;&#60;code&#62;add_filter(&#38;#39;gform_paypal_query&#38;#39;, &#38;#39;update_paypal_query&#38;#39;, 6, 29);&#38;lt;br /&#38;gt;
function update_paypal_query($query_string, $form, $entry){&#38;lt;br /&#38;gt;
	parse_str($query_string, $qs_param); //put PayPal querystring into an array&#38;lt;br /&#38;gt;
	if (is_array($qs_param)){&#38;lt;br /&#38;gt;
		$field = Donation::get_field($form, 6); //get form field, the 2nd parameter is the field id&#38;lt;br /&#38;gt;
		$value = Donation::get_lead_field_value($entry,$field); //get the value of the field&#38;lt;br /&#38;gt;
		//product fields are pipe-delimited, the value will be the first item in the string&#38;lt;br /&#38;gt;
		if (!empty($value)){&#38;lt;br /&#38;gt;
			$ary_values = explode(&#38;quot;&#124;&#38;quot;,$value); //put the values into an array and grab out the first item [0]&#38;lt;br /&#38;gt;
			$qs_param[&#38;quot;GNI Donation&#38;quot;] = $ary_values[0]; //replace the item name in the querystring with the value, the &#38;quot;1&#38;quot; is the field id&#38;lt;br /&#38;gt;
			$query_string = &#38;quot;&#38;amp;&#38;quot; . http_build_query($qs_param); //put array back into querystring form&#38;lt;br /&#38;gt;
		}&#38;lt;br /&#38;gt;
	}&#38;lt;br /&#38;gt;
	return $query_string;&#38;lt;br /&#38;gt;
}&#60;/code&#62;&#60;/pre&#62;</description>
		</item>

	</channel>
</rss>
