<?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: PHP Gform_product_info use mode with paypal</title>
		<link>https://legacy.forums.gravityhelp.com/topic/php-gform_product_info-use-mode-with-paypal</link>
		<description>Gravity Support Forums Topic: PHP Gform_product_info use mode with paypal</description>
		<language>en-US</language>
		<pubDate>Tue, 21 Apr 2026 20:33:48 +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/php-gform_product_info-use-mode-with-paypal" rel="self" type="application/rss+xml" />

		<item>
			<title>Frederic on "PHP Gform_product_info use mode with paypal"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/php-gform_product_info-use-mode-with-paypal#post-47739</link>
			<pubDate>Mon, 30 Jan 2012 06:37:23 +0000</pubDate>
			<dc:creator>Frederic</dc:creator>
			<guid isPermaLink="false">47739@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi,&#60;/p&#62;
&#60;p&#62;I have made a JS hook to let the customer choose beetween full payment or deposit (&#34;acompte&#34;) :&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;function gform_product_total(formId, total){
if(formId == 10){

			if (jQuery(&#38;#39;#input_10_71&#38;#39;).val() ==&#38;#39;acompte&#124;0&#38;#39;){
				total = total *.30;
			}
	}
	return total;

}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;The client chooses in a select list (product with 0,00€ price) the mode (full payment or deposit). If he chooses deposit, I calculate 30% of the total amount.&#60;/p&#62;
&#60;p&#62;Now, I have to make the php hook to replicate the behaviour before sending to paypal but I do not understand the parameters I have to deal with to make it.&#60;/p&#62;
&#60;p&#62;I have read a bunch of doc about it (form entry, gform..., etc.) but it is still a little bit dark.&#60;/p&#62;
&#60;p&#62;Can you show me the way ?&#60;/p&#62;
&#60;p&#62;Regards,&#60;/p&#62;
&#60;p&#62;Frédéric
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
