Paypal within Chronoforms, my solution

Shows some Tutorials

Paypal within Chronoforms, my solution

Postby hustad on Wed Oct 17, 2007 5:21 pm

Hi,
Just wanted to share what i did to for my paypal integration.

It works like this: User filles out form fields. Presses Submit button and a mail is sent to site admin. Then a page with a By now button and some text are shown.
To complete the payment the user presses the Buy now button and paypal with the correct values are launched.

My customer is selling digital reports, and the amount is always one and there is a different price for each report. I did not need a chart solution, only a Paypal buy now button.

I created the html form and included in chronoforms. At the "form code" tab on "On submit code - after sending emails" i just pasted in the following: (this is pasted on each report where it has different amount and item_name)

Code: Select all
Press the "Buy Now" button below to complete the transaction: <br />
<br />
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
   <input type="hidden" name="cmd" value="_xclick">
   <input type="hidden" name="business" value="post@domain.com">
   <input type="hidden" name="item_name" value="Astro report">
   <input type="hidden" name="amount" value="12.95">
   <input type="hidden" name="no_shipping" value="1">
   <input type="hidden" name="no_note" value="1">
   <input type="hidden" name="currency_code" value="USD">
   <input type="hidden" name="return" value="http://www.domain.com">
   <input type="image" src="https://www.paypal.com/en_US/i/btn/x-click-but23.gif" name="submit" alt="Make payments with payPal - it's fast, free and secure!">
   <img alt=""
   src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1">
</form>
hustad
Fresh Boarder
 
Posts: 8
Joined: Wed Jan 31, 2007 6:34 pm

Re:Paypal within Chronoforms, my solution

Postby admin on Wed Oct 17, 2007 6:06 pm

Thank you very much hustad for sharing your idea and code! :)

Sincerely,

Max
ChronoForms/ChronoConnectivity/ChronoComments Developer Thanks for using our components!
If you have any problems with any extension please tell us.
If you like any of our extensions please post a review at Joomla.org
Want users to submit their content to your website ? try Submit Story
Want to list/edit/delete your data ? try ChronoConnectivity
Want to have stylish AJAX comments ? try ChronoComments
User avatar
admin
Platinum Boarder
 
Posts: 4283
Joined: Mon Aug 14, 2006 5:29 am


Return to ChronoForms How To

Who is online

Users browsing this forum: GreyHead, MSN [Bot], Yahoo [Bot] and 5 guests