Forums

Integrating PayPal in custom form

riga75 07 Mar, 2014
I would make sure that when one submits the form to be redirected to paypal and make the payment, what should I do?

thanks a lot

stefano
GreyHead 08 Mar, 2014
Hi stefano,

it depends on how you want to set PayPal up and which version of ChronoForms you are using. The simplest solution in CFv4 is to use the ReDirect URL action to set up a PayPal URL and the ReDirect User action to do the redirection.

Bob
riga75 08 Mar, 2014
Hello Bob and thank you for your immense help.
I use CFv4 and I created a custom form, I have seen that among the various events is PayPal Redirect - Trial I use that?
I would like to use chronoform vednere seo analysis of the sites and then I created a form with fields set and that when the user submits the form to be redirected to paypal with the amount I fixed myself and then once you have paid is redirected to my site with a thank you page. Then come to me with the payment form data compiled and the user an email thanks.
Can you help me?
thanks a lot

stefano
Max_admin 08 Mar, 2014
Hi Stefano,

Please check this:
http://www.chronoengine.com/faqs/57-cfv4/cfv4-actions/2583-how-to-use-the-paypal-redirect-action.html

Regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
riga75 14 Mar, 2014
As explained in the guide I created two fields one for the causal and the other for the price.
The problem is that when I fill out the form it redirects to paypal but the price is putting sbalgiato.
I enclose the code for the form so you tell me where I went wrong.
<div class="FormChronoform formImage"><img class="formImage"src="images/button-form.png" alt="compila il form">

  <div class="campionatura">
	<div class="halfSizeL">Il tuo Nome</div>
	<div class="halfSizeR"><input type="text" title="Inserisci il tuo Nome" class="validate['required']" name="nomecognome" id="nomecognome" /> <span style="color:#c11623">*</span></div>
	<div class="clear"></div>
	<div class="halfSizeL">Indirizzo Email</div>
	<div class="halfSizeR"><input type="text" title="Inserisci il tuo indirizzo Email" class="validate['required','email']" name="email" id="email" /> <span style="color:#c11623">*</span></div>
	<div class="clear"></div>
	<div class="halfSizeL">Numero di Telefono</div>
        <div class="halfSizeR"><input type="text" title="Inserisci il numero di telefono" class="validate['required']" name="telefono" id="telefono" /> <span style="color:#c11623">*</span></div>
	<div class="clear"></div>
        <div class="halfSizeL">Sito Web da analizzare</div>
        <div class="halfSizeR"><input type="text" title="Inserisci il sito web da analizzare" class="validate['required']" name="sitoweb" id="sitoweb" /> <span style="color:#c11623">*</span></div>
	<div class="clear"></div>
	<div class="halfSizeL">Keywords</div>
        <div class="halfSizeR"><input type="text" title="Inserisci delle keywords con cui vorresti essere  posizionato" class="validate['required']" name="keywords" id="keywords" /> <span style="color:#c11623">*</span></div>
	<div class="clear"></div>
	<div class="halfSizeLText">Messaggio</div>
	<div class="halfSizeRText"><textarea name="messaggio" cols="35" rows="6" class="validate['required']" title="Inserisci un messaggio" id="messaggio"/></textarea>
  <span style="color:#c11623">*</span>
	</div>
    
	<div class="clear"></div>
	<div class="fullSize"><input type="submit" name="Invia" id="Invia" value="Invia" />
	</div>
<input type="hidden" title="causale" name="causale" value="Analisi Seo" />
<input type="hidden" title="prezzo" name="prezzo" value="37.50" />
	<div class="fullSize">
	  <p><span style="color:#c11623">*</span> = Campi obbligatori</p>
	</div>
     <div class="privacy">
          <input type="checkbox"class="validate['required']" title="Per inviare il form devi dare il consenso" name="privacy" value="Si" checked="checked" />
          Acconsento al trattamento dei dati per ricevere una risposta al mio messaggio. I miei dati saranno trattati limitatamente a questo fine. </div>
</div>
</div>


thanks
Max_admin 15 Mar, 2014
Please post a screenshot for your PayPal settings configuration ?

Do you have "prezzo" in the "Amount" field ? also please try an integer, like "37" only ?

Regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
riga75 17 Mar, 2014
I tried to put 37 but continues to change my price.
Here are the screenshots.
thanks a lot

stefano

[attachment=0]Seo_Joomla_-_Amministrazione_-_Form_Wizard__Analisi 2.jpg[/attachment]
[attachment=1]Seo_Joomla_-_Amministrazione_-_Form_Wizard__Analisi 3.jpg[/attachment]
[attachment=2]Seo_Joomla_-_Amministrazione_-_Form_Wizard__Analisi.jpg[/attachment]
Max_admin 18 Mar, 2014
I need to test your form, please send me a link, you may also enable the "debug" setting under the "PayPal redirect, what do you get after submitting the form ?

Also the "PayPal listener" position is incorrect, it should be in a new event, please follow the guide in the FAQ

Regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
riga75 18 Mar, 2014
I enabled debugging and I get this:

https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&business=s.xxxx%40tiscalixxxxx.it&no_shipping=1&no_note=1&return=http%3A%2F%2Fwww.seojoomla.it%2Femail-inviata.html¤cy_code=EUR&item_name=Richiesta+analisi&amount=148&first_name=stefano+rigazio&last_name=&address1=&address2=&city=&state=&zip=&country=&night_phone_a=&
Max_admin 18 Mar, 2014
I tested this link into my browser and I got the normal PayPal payment page with the item name and 148 USD to pay, so it looks like it works fine, I will change your address in the data now!

Please try to change the currency code to "EU" instead ?
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
riga75 18 Mar, 2014
I set EU
but I get this:
This recipient does not accept payments denominated in USD. Please contact the seller and ask him to update His payment receiving preferences to accept this currency.

The problem as I said is that like you said, the cost is actually 148 I have set 37
Max_admin 18 Mar, 2014
Hi Stefano,

Then maybe you should update your account to accept payments in EURO ?

Regarding the different amount, that's because you are using the "PayPal redirect - trial", the full version should not change the amount, you can purchase the full version on the "subscriptions" page.

Regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
This topic is locked and no more replies can be posted.