<?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: Sending product value instead of label to paypal</title>
		<link>https://legacy.forums.gravityhelp.com/topic/sending-product-value-instead-of-label-to-paypal</link>
		<description>Gravity Support Forums Topic: Sending product value instead of label to paypal</description>
		<language>en-US</language>
		<pubDate>Tue, 21 Apr 2026 07:25:42 +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/sending-product-value-instead-of-label-to-paypal" rel="self" type="application/rss+xml" />

		<item>
			<title>surfermac on "Sending product value instead of label to paypal"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/sending-product-value-instead-of-label-to-paypal#post-76571</link>
			<pubDate>Thu, 20 Sep 2012 15:11:14 +0000</pubDate>
			<dc:creator>surfermac</dc:creator>
			<guid isPermaLink="false">76571@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;this is what i added to the function.php. 10 is the form ID field.&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;add_filter(&#38;#39;gform_paypal_query&#38;#39;, &#38;#39;update_paypal_query&#38;#39;, 10, 3);
function update_paypal_query($query_string, $form, $entry){
	parse_str($query_string, $qs_param); //put PayPal querystring into an array
	if (is_array($qs_param)){
		$field = RGFormsModel::get_field($form, 10); //get form field, the 2nd parameter is the field id
		$value = RGFormsModel::get_lead_field_value($entry,$field); //get the value of the field
		//product fields are pipe-delimited, the value will be the first item in the string
		if (!empty($value)){
			$ary_values = explode(&#38;quot;&#124;&#38;quot;,$value); //put the values into an array and grab out the first item [0]
			$qs_param[&#38;quot;item_name_1&#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
			$query_string = &#38;quot;&#38;amp;&#38;quot; . http_build_query($qs_param); //put array back into querystring form
		}
	}

	return $query_string;
}&#60;/code&#62;&#60;/pre&#62;</description>
		</item>
		<item>
			<title>surfermac on "Sending product value instead of label to paypal"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/sending-product-value-instead-of-label-to-paypal#post-76570</link>
			<pubDate>Thu, 20 Sep 2012 15:09:40 +0000</pubDate>
			<dc:creator>surfermac</dc:creator>
			<guid isPermaLink="false">76570@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;i still can not get this to work. &#60;a href=&#34;http://nfa.mozaicltd.com/donate/&#34; rel=&#34;nofollow&#34;&#62;http://nfa.mozaicltd.com/donate/&#60;/a&#62;&#60;br /&#62;
The LABEL get pass through and not the actual value.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Dana Cobb on "Sending product value instead of label to paypal"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/sending-product-value-instead-of-label-to-paypal#post-76554</link>
			<pubDate>Thu, 20 Sep 2012 14:07:46 +0000</pubDate>
			<dc:creator>Dana Cobb</dc:creator>
			<guid isPermaLink="false">76554@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Here is another approach that can be used: &#60;a href=&#34;http://pastie.org/4762039&#34; rel=&#34;nofollow&#34;&#62;http://pastie.org/4762039&#60;/a&#62; .
&#60;/p&#62;</description>
		</item>
		<item>
			<title>surfermac on "Sending product value instead of label to paypal"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/sending-product-value-instead-of-label-to-paypal#post-76432</link>
			<pubDate>Wed, 19 Sep 2012 23:50:16 +0000</pubDate>
			<dc:creator>surfermac</dc:creator>
			<guid isPermaLink="false">76432@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Can i get a bit more instructions on this? I can get it to work. I have the same request. I need to have PP to use the &#34;VALUE&#34; instead of &#34;LABEL&#34;.&#60;/p&#62;
&#60;p&#62;I pasted Dana code in the function and it still does not work.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Dana Cobb on "Sending product value instead of label to paypal"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/sending-product-value-instead-of-label-to-paypal#post-75878</link>
			<pubDate>Mon, 17 Sep 2012 15:07:00 +0000</pubDate>
			<dc:creator>Dana Cobb</dc:creator>
			<guid isPermaLink="false">75878@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi, Mike,&#60;/p&#62;
&#60;p&#62;I have responded to your Priority Support request, but I am including the info here as well. Take  a look at the example here &#60;a href=&#34;http://pastie.org/4740851&#34; rel=&#34;nofollow&#34;&#62;http://pastie.org/4740851&#60;/a&#62;  which will strip out the html so you can use the filter mentioned by Chris.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Mike on "Sending product value instead of label to paypal"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/sending-product-value-instead-of-label-to-paypal#post-74912</link>
			<pubDate>Wed, 12 Sep 2012 00:13:06 +0000</pubDate>
			<dc:creator>Mike</dc:creator>
			<guid isPermaLink="false">74912@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Could you give me an example of what code to use to send value instead of label for a product?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "Sending product value instead of label to paypal"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/sending-product-value-instead-of-label-to-paypal#post-74872</link>
			<pubDate>Tue, 11 Sep 2012 21:42:57 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">74872@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;You can use the gform_paypal_query filter to modify the data which is being sent to PayPal:&#60;/p&#62;
&#60;p&#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;I'm not sure if there is an easier way to do it or not.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Mike on "Sending product value instead of label to paypal"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/sending-product-value-instead-of-label-to-paypal#post-74738</link>
			<pubDate>Tue, 11 Sep 2012 00:13:56 +0000</pubDate>
			<dc:creator>Mike</dc:creator>
			<guid isPermaLink="false">74738@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I'm using a product field type: radio buttons with images instead of radio buttons, so I have html in my label field. I've also filled out the &#34;value&#34; section with the real name, so for example:&#60;/p&#62;
&#60;p&#62;Label = &#38;lt;div class=&#34;product1&#34; title=&#34;Product 1&#34;&#38;gt;Product 1&#38;lt;/div&#38;gt;&#60;br /&#62;
Value = Product 1&#60;br /&#62;
Price = $50&#60;/p&#62;
&#60;p&#62;However, when it sends to Paypal, the HTML shows up in the description area (on the payment page) instead of the value. How can I have GF send the value to Paypal to use as a description, instead of the label?
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
