<?xml version="1.0"?><!-- generator="bbPress" -->

<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
>

<channel>
<title>MachForm Community Forums Topic: A way to integrate PayPal</title>
<link>https://www.machform.com/forums/</link>
<description>MachForm Community Forums Topic: A way to integrate PayPal</description>
<language>en</language>
<pubDate>Sun, 03 May 2026 23:05:50 +0000</pubDate>

<item>
<title>christopherbrooks on "A way to integrate PayPal"</title>
<link>https://www.machform.com/forums/topic/a-way-to-integrate-paypal#post-12939</link>
<pubDate>Sat, 26 Nov 2011 04:00:41 +0000</pubDate>
<dc:creator>christopherbrooks</dc:creator>
<guid isPermaLink="false">12939@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;I have a very similar need. The form includes several check boxes from which a somewhat custom calculation would determine the total amount. I was considering putting a trigger on the review table, to do the calculation and post the result to a column (existing or perhaps a new one). If I did that, would the review page show the trigger-generated total?   ANy thoughts on whether this would be more or less appropriate that doing the calculation in the php script? Either way I want the user to be able to see the total (and possibly pass it to PayPal or Google Checkout). For even more capability, would there be any way to display the running, recalculated total on the form itself?
&#60;/p&#62;</description>
</item>
<item>
<title>scutuma on "A way to integrate PayPal"</title>
<link>https://www.machform.com/forums/topic/a-way-to-integrate-paypal#post-12919</link>
<pubDate>Sat, 19 Nov 2011 02:51:32 +0000</pubDate>
<dc:creator>scutuma</dc:creator>
<guid isPermaLink="false">12919@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;I have a form where I want the user to specify how many of a specific item he wants to purchase.  From that I can calculate the total cost.  I can then use a redirect similar to the above redirect for PayPal but to CASHNet instead.  The problem I have is that I need to multiply the number of items purchased by the cost per item and include that total in the URL to which the user is redirected. Could you tell me if this is possible to calculate this cost in post-functions.php so that I can fashion the correct URL? If it is possible, could you explain how to do this?
&#60;/p&#62;</description>
</item>
<item>
<title>yuniar on "A way to integrate PayPal"</title>
<link>https://www.machform.com/forums/topic/a-way-to-integrate-paypal#post-5023</link>
<pubDate>Fri, 13 Mar 2009 15:58:50 +0000</pubDate>
<dc:creator>yuniar</dc:creator>
<guid isPermaLink="false">5023@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;The $form_redirect variable only accept an URL, so it won't work if you paste the whole form code there. You need to construct the URL using the PayPal generator above.
&#60;/p&#62;</description>
</item>
<item>
<title>teamwebb2008 on "A way to integrate PayPal"</title>
<link>https://www.machform.com/forums/topic/a-way-to-integrate-paypal#post-5004</link>
<pubDate>Thu, 12 Mar 2009 00:55:32 +0000</pubDate>
<dc:creator>teamwebb2008</dc:creator>
<guid isPermaLink="false">5004@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;I tried your advice and I got this error:&#60;br /&#62;
Parse error: syntax error, unexpected T_STRING in /home/p14acaoh/public_html/machform/includes/post-functions.php on line 877&#60;/p&#62;
&#60;p&#62;I removed the code below completely and I got this error:&#60;br /&#62;
Parse error: syntax error, unexpected T_STRING in /home/p14acaoh/public_html/machform/includes/post-functions.php on line 2260&#60;/p&#62;
&#60;p&#62;If(form_id == 2) {&#60;br /&#62;
              $form_redirect = &#34;https://www.paypal.com/cgi-bin/webscr&#34;&#60;br /&#62;
&#38;lt;input type=&#34;hidden&#34; name=&#34;business&#34; value=&#34;test@gmail.com&#34;&#38;gt;&#60;br /&#62;
&#38;lt;input type=&#34;hidden&#34; name=&#34;cmd&#34; value=&#34;_cart&#34;&#38;gt;&#60;br /&#62;
&#38;lt;input type=&#34;hidden&#34; name=&#34;add&#34; value=&#34;1&#34;&#38;gt;&#60;br /&#62;
&#38;lt;input id=&#34;element_67_1&#34; name=&#34;Family&#34; class=&#34;element checkbox&#34; type=&#34;checkbox&#34; value=&#34;140.00&#34;  /&#38;gt;&#60;br /&#62;
&#38;lt;input id=&#34;element_67_2&#34; name=&#34;Senior&#34; class=&#34;element checkbox&#34; type=&#34;checkbox&#34; value=&#34;115.00&#34;  /&#38;gt;&#60;br /&#62;
&#38;lt;input id=&#34;element_67_3&#34; name=&#34;Junior&#34; class=&#34;element checkbox&#34; type=&#34;checkbox&#34; value=&#34;100.00&#34;  /&#38;gt;&#60;br /&#62;
&#38;lt;input id=&#34;element_67_4&#34; name=&#34;Professional&#34; class=&#34;element checkbox&#34; type=&#34;checkbox&#34; value=&#34;85.00&#34;  /&#38;gt;&#60;br /&#62;
&#38;lt;input id=&#34;element_67_5&#34; name=&#34;Associate&#34; class=&#34;element checkbox&#34; type=&#34;checkbox&#34; value=&#34;35.00&#34;  /&#38;gt;&#60;br /&#62;
}&#60;/p&#62;
&#60;p&#62;I have really messed things up.  I got the above code to work in a plain html file, but will not work with my forms.
&#60;/p&#62;</description>
</item>
<item>
<title>yuniar on "A way to integrate PayPal"</title>
<link>https://www.machform.com/forums/topic/a-way-to-integrate-paypal#post-4998</link>
<pubDate>Wed, 11 Mar 2009 15:36:10 +0000</pubDate>
<dc:creator>yuniar</dc:creator>
<guid isPermaLink="false">4998@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Try paste your code (few lines before and after line 876) here, it looks like you are having some syntax error.
&#60;/p&#62;</description>
</item>
<item>
<title>teamwebb2008 on "A way to integrate PayPal"</title>
<link>https://www.machform.com/forums/topic/a-way-to-integrate-paypal#post-4992</link>
<pubDate>Wed, 11 Mar 2009 02:34:35 +0000</pubDate>
<dc:creator>teamwebb2008</dc:creator>
<guid isPermaLink="false">4992@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;I tried the above and now I get the following:&#60;/p&#62;
&#60;p&#62;Parse error: syntax error, unexpected T_STRING in /home/p14acaoh/public_html/machform/includes/post-functions.php on line 876
&#60;/p&#62;</description>
</item>
<item>
<title>yuniar on "A way to integrate PayPal"</title>
<link>https://www.machform.com/forums/topic/a-way-to-integrate-paypal#post-4770</link>
<pubDate>Mon, 23 Feb 2009 17:59:44 +0000</pubDate>
<dc:creator>yuniar</dc:creator>
<guid isPermaLink="false">4770@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;If you have &#34;Show Review Page Before Submitting&#34; enabled, there is some difference to put the code indeed.&#60;/p&#62;
&#60;p&#62;If this is the case, edit &#34;includes/post-functions.php&#34; file, go to the bottom and you'll see this:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;$commit_result[&#38;#39;form_redirect&#38;#39;] = $form_redirect;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;simply adjust that line.
&#60;/p&#62;</description>
</item>
<item>
<title>tgkennedy on "A way to integrate PayPal"</title>
<link>https://www.machform.com/forums/topic/a-way-to-integrate-paypal#post-4759</link>
<pubDate>Sat, 21 Feb 2009 22:03:28 +0000</pubDate>
<dc:creator>tgkennedy</dc:creator>
<guid isPermaLink="false">4759@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;The redirect doesn't work if you have the &#34;Show Review Page Before Submitting&#34; option checked.  If you uncheck it, the redirect code for PayPal above works fine.  I too was looking for code in the confirm.php file that would then redirect to PayPal, but I could not find it.
&#60;/p&#62;</description>
</item>
<item>
<title>yuniar on "A way to integrate PayPal"</title>
<link>https://www.machform.com/forums/topic/a-way-to-integrate-paypal#post-4715</link>
<pubDate>Wed, 18 Feb 2009 14:55:35 +0000</pubDate>
<dc:creator>yuniar</dc:creator>
<guid isPermaLink="false">4715@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Do you mean you would like to enable form review?&#60;/p&#62;
&#60;p&#62;If so, click on your form properties and check the &#34;Show Review Page Before Submitting&#34; checkbox.
&#60;/p&#62;</description>
</item>
<item>
<title>teamwebb2008 on "A way to integrate PayPal"</title>
<link>https://www.machform.com/forums/topic/a-way-to-integrate-paypal#post-4705</link>
<pubDate>Wed, 18 Feb 2009 03:15:10 +0000</pubDate>
<dc:creator>teamwebb2008</dc:creator>
<guid isPermaLink="false">4705@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Where can I find the review submission?  I would like to place the above code on submission of this form.
&#60;/p&#62;</description>
</item>
<item>
<title>yuniar on "A way to integrate PayPal"</title>
<link>https://www.machform.com/forums/topic/a-way-to-integrate-paypal#post-4557</link>
<pubDate>Fri, 06 Feb 2009 10:19:56 +0000</pubDate>
<dc:creator>yuniar</dc:creator>
<guid isPermaLink="false">4557@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Above the $process_result['form_redirect'] line, you can have something like:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;if($form_id == 5){
  $form_redirect = &#38;#39;http://www.paypal.com/xxxxxxxx&#38;#39;;
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;that's the simplest code sample. you can have another coding there to construct the final paypal URL.&#60;/p&#62;
&#60;p&#62;This PayPal URL generator is quite handy:&#60;br /&#62;
&#60;a href=&#34;http://www.codetransit.com/generators/paypal_link_generator.php&#34; rel=&#34;nofollow&#34;&#62;http://www.codetransit.com/generators/paypal_link_generator.php&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;This one more complete:&#60;br /&#62;
&#60;a href=&#34;http://gotdnn.dnn3.com/DNNModules/PayPalURLGenerator/tabid/187/Default.aspx&#34; rel=&#34;nofollow&#34;&#62;http://gotdnn.dnn3.com/DNNModules/PayPalURLGenerator/tabid/187/Default.aspx&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;This one to generate Subscription URL:&#60;br /&#62;
&#60;a href=&#34;http://www.justin-cook.com/wp/2006/09/13/easily-create-recurring-paypal-subscription-urls/&#34; rel=&#34;nofollow&#34;&#62;http://www.justin-cook.com/wp/2006/09/13/easily-create-recurring-paypal-subscription-urls/&#60;/a&#62;
&#60;/p&#62;</description>
</item>
<item>
<title>teamwebb2008 on "A way to integrate PayPal"</title>
<link>https://www.machform.com/forums/topic/a-way-to-integrate-paypal#post-4544</link>
<pubDate>Thu, 05 Feb 2009 21:55:16 +0000</pubDate>
<dc:creator>teamwebb2008</dc:creator>
<guid isPermaLink="false">4544@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Would I place my url after this:  $process_result['form_redirect'] or would I need to continue coding.  New to php and learning fast with your help.  Thanks again.
&#60;/p&#62;</description>
</item>
<item>
<title>yuniar on "A way to integrate PayPal"</title>
<link>https://www.machform.com/forums/topic/a-way-to-integrate-paypal#post-1547</link>
<pubDate>Wed, 30 Apr 2008 10:05:43 +0000</pubDate>
<dc:creator>yuniar</dc:creator>
<guid isPermaLink="false">1547@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;I have received many requests regarding PayPal integration, however I'm afraid this feature is not available in current version.&#60;/p&#62;
&#60;p&#62;It is possible to modify the code for PayPal integration, but it requires advanced PHP programming skill.&#60;/p&#62;
&#60;p&#62;I can't help with the customization itself, but I can give you some pointer.&#60;/p&#62;
&#60;p&#62;You only need to modify &#60;strong&#62;includes/post-functions.php&#60;/strong&#62; file. There is a function there called process_form(), you will need to modify this function to redirect to paypal with the necessary parameters from your form.&#60;/p&#62;
&#60;p&#62;Around line 865, you can see the standard code to send the redirect URL.&#60;/p&#62;
&#60;p&#62;&#60;code&#62;$process_result[&#38;#39;form_redirect&#38;#39;]  = $form_redirect;&#60;/code&#62;&#60;br /&#62;
&#60;code&#62;&#60;/code&#62;&#60;br /&#62;
You will need to customize that line. So that &#60;code&#62;$process_result[&#38;#39;form_redirect&#38;#39;]&#60;/code&#62; would contain the appropriate PayPal URL.&#60;/p&#62;
&#60;p&#62;I hope that helps.
&#60;/p&#62;</description>
</item>
<item>
<title>MultiMatt on "A way to integrate PayPal"</title>
<link>https://www.machform.com/forums/topic/a-way-to-integrate-paypal#post-1541</link>
<pubDate>Tue, 29 Apr 2008 21:17:16 +0000</pubDate>
<dc:creator>MultiMatt</dc:creator>
<guid isPermaLink="false">1541@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;I just purchased MachForm and I'm very excited about the functionality!  I whipped up a contact form for my wife's site in seconds, which rocked!&#60;/p&#62;
&#60;p&#62;I have a non-profit environmental group (kaee.org) I am doing some work for, and they want to have online registration for their annual conference. I was hoping to create a form which would capture the essential registration information, then incorporate PayPal buttons for the variety of things a person could register for (workshops, etc).&#60;br /&#62;
That way, the visitor is just filling out one form, but the treasurer has the info they need, and the registration folks have the info they need...&#60;/p&#62;
&#60;p&#62;With the old method I used for creating forms, I was able to go into the actual form HTML page and do some tweaking, which would have allowed me to insert the code for the PayPal buttons.&#60;br /&#62;
I know (just enough to be dangerous!) that your forms are database driven, so essentially there isn't a stand-alone page for me to edit and do such a thing.&#60;/p&#62;
&#60;p&#62;Do you have a suggestion for how I might accomplish what I would like to do for them?&#60;/p&#62;
&#60;p&#62;It would be nice to have something like that incorporated into the form building process, if possible!&#60;/p&#62;
&#60;p&#62;Thanks in advance!&#60;br /&#62;
Matt
&#60;/p&#62;</description>
</item>

</channel>
</rss>
