<?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: gform_paypal_query - PayPal Pro too?</title>
		<link>https://legacy.forums.gravityhelp.com/topic/gform_paypal_query-paypal-pro-too</link>
		<description>Gravity Support Forums Topic: gform_paypal_query - PayPal Pro too?</description>
		<language>en-US</language>
		<pubDate>Sat, 04 Apr 2026 11:08:45 +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/gform_paypal_query-paypal-pro-too" rel="self" type="application/rss+xml" />

		<item>
			<title>Brad Trivers on "gform_paypal_query - PayPal Pro too?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/gform_paypal_query-paypal-pro-too#post-75149</link>
			<pubDate>Thu, 13 Sep 2012 13:51:25 +0000</pubDate>
			<dc:creator>Brad Trivers</dc:creator>
			<guid isPermaLink="false">75149@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;So... I'm looking at paypalpro.php and see where the paypalpro_validation function sets TOTALBILLINGCYCLES on line 2050 in the $billing array.  &#60;/p&#62;
&#60;p&#62;The $billing array info is posted to paypal in line 2075 of paypalpro_validation using:&#60;/p&#62;
&#60;p&#62;&#60;code&#62;$response = self::post_to_paypal(&#38;quot;CreateRecurringPaymentsProfile&#38;quot;,$billing);&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;It looks like the gform_validation filter is used to do initiate the paypalpro_validation as per: &#60;/p&#62;
&#60;p&#62;&#60;code&#62;add_filter(&#38;#39;gform_validation&#38;#39;,array(&#38;quot;GFPayPalPro&#38;quot;, &#38;quot;paypalpro_validation&#38;quot;), 10, 4);&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;The question is can I use a filter to change this value before sending to PayPal.&#60;/p&#62;
&#60;p&#62;Perhaps I'll just have to hack the code and add in code at line 2051 something like:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;if( function_exists(&#38;#39;mf_get_total_billing_cycles&#38;#39;) )
 $billing = mf_get_total_billing_cycles($_POST, $billing);&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;where mf_get_total_billing_cycles changed the $billing array as needed.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Brad Trivers on "gform_paypal_query - PayPal Pro too?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/gform_paypal_query-paypal-pro-too#post-74650</link>
			<pubDate>Mon, 10 Sep 2012 10:40:32 +0000</pubDate>
			<dc:creator>Brad Trivers</dc:creator>
			<guid isPermaLink="false">74650@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Thanks Chris.  I've got a function that updates the &#34;srt&#34; (subscription recurring time) query variable to dynamically change the number of subscription installments that recur.  In this case it is a subscription service for new mother care packages and the number of installments is based on the age of the baby - they only receive monthly packages until the baby is 1 year old.&#60;/p&#62;
&#60;p&#62;For PayPal standard this function works well for me:&#60;br /&#62;
&#60;a href=&#34;http://pastebin.com/wcDqYipk&#34; rel=&#34;nofollow&#34;&#62;http://pastebin.com/wcDqYipk&#60;/a&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "gform_paypal_query - PayPal Pro too?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/gform_paypal_query-paypal-pro-too#post-74635</link>
			<pubDate>Mon, 10 Sep 2012 09:11:04 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">74635@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;HI Brad.  I don't see that filter in the PayPal Pro add-on files, so I am going to guess no.  Also, on &#60;a href=&#34;http://www.gravityhelp.com/documentation/page/Gform_paypal_query&#34; rel=&#34;nofollow&#34;&#62;this page of documentation&#60;/a&#62; it says:&#60;/p&#62;
&#60;blockquote&#62;&#60;p&#62;
Use this filter to modify the query string that will be sent to PayPal. This filter is fired immediately before the user is &#60;strong&#62;redirected to PayPal&#60;/strong&#62;.
&#60;/p&#62;&#60;/blockquote&#62;
&#60;p&#62;With PayPal Pro there is no redirection to PayPal.&#60;/p&#62;
&#60;p&#62;What is it you're trying to do?  Maybe we can find a work around for you.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Brad Trivers on "gform_paypal_query - PayPal Pro too?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/gform_paypal_query-paypal-pro-too#post-74620</link>
			<pubDate>Mon, 10 Sep 2012 08:15:38 +0000</pubDate>
			<dc:creator>Brad Trivers</dc:creator>
			<guid isPermaLink="false">74620@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Does the gform_paypal_query filter apply to PayPal Pro (as well as PayPal)?
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
