Hello,
I have a form to get event registration. With this form I actually can get user data, receive a confirmation email both to me and the user, store the data on a database table.
What I would like to have is a way to get the user paying the subscrition event fee via paypal, using the form I already set up.
I tried to use the Redirect URL this way:
1) [attachment=0]01.jpg[/attachment]
2) [attachment=1]02.jpg[/attachment]
But I get this error
[attachment=2]03.jpg[/attachment]
Who can help me solving this? What am I missing?
Who can quote me this job?
I searched both on forum and FAQ but I did not find any instruction...
I know there is a specific paypal plugin; but I only need to have simple form to get money. I know that this way there will be no syncro with data collected and payments, and that I will have to manually link table data with paypal payment, but I don't mind.
Thank you in advance;
Hi giupi,
My Italian isn't too good but doesn't that message say that there is a problem with the Email address? Are you sure that the PayPal account is set up on this address?
Bob
Hello,
thanks for your answer,
yes the email is correct: it is the same I log-in in paypal account; it looks strange to me that the address in the error page is displayed info%40****.it
I also tried with my personal paypal account (different from the first I used) but I get the same error.
Is there any setting I have to put in the redirect user?
Some years ago I did what I'm trying to do now, with chronoform 3, and I managed to get it...
I don't want to use paypal plugin since I did not know either how to activate IPN on my paypal account...
I copied what is displayed on this post http://www.chronoengine.com/forums/posts/f2/t94486/redirect-url-problem.html?hilit=paypal
Thanks for your kind help...
Hi giupi,
The %40 etc. are url-encoded versions of the @ in the email address. PayPal should have no problem with this. Please drag a Debugger action into the On Submit event, then submit the form and post the debug results here - or in a PM if you prefer.
Bob
Hi giupi,
You can test using the "PayPal redirect - trial" action, you don't have to setup the IPN, that's optional based on your needs, see if it will work that way or not, you may also enable the debug of that action to compare the query string used to redirect!
Regards,
Max
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
@Max: I tried to use " - Trial" and I got no error (though I got the wrong amount since it's a trial).
I used Paypal sandbox so I suppose it's normal to get wrong name and password error when I tried to log-in in the paypal account to complete the payment; for the same reason I could not either verify the return to the site to complete the data submitting.
How much does it cost the PayPal Redirect action? And how can I get it?
@Bob: What could I do to solve that strange re-encoding?
Meanwhile I made a test by creating from the very scratch a very simple test form, without any stuff other than the minimum to make it work; same error result
I found this post http://www.chronoengine.com/forums/posts/f2/t94652/paypal-does-not-return-to-website-after-payment.html?hilit=paypal where someone experienced my same cy_code problem (I get a "%2540" problem more).
Thanks for your answer
Hi guipi,
Ok, regarding the encoding issue, I think it only happens when the url is rendered on the page (hence the 2nd encoding), but actually the url used for the redirection should be fine, please put the url below in your browser's address bar after fixing the problems in it:
https://www.paypal.com/it/cgi-bin/webscr?cmd=_xclick&business=giupi.geo%2540yahoo.com¤cy_code=EUR&item_name=&amount=100
Does it work ?
Regarding the PayPal redirect, why test with a sandbox account ? you already have a problem related to the account in PayPal, so we need to make sure everything is running well using your live account, please make a test purchase for $1 using the real account and let us know what happens.
The PayPal subscription price is listed on the "Subscriptions" page from the top menu, and after purchase you should contact me to get the patch file which fixes the amount problem!
Regards,
Max
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
Hello Max,
the url you provided still causes the error (I did not understand what/how should I fix)
Anyway as for the paypal plugin, it seems to work (except for the amount). I made a couple of 2€ payment, but I coul not go further: after the payment nothing happened, so I did not manage to store the form data on the table, neither I could get any thank you page or email.
This is the actions/events config:
[attachment=0]Senzanome.png[/attachment]
I read the FAQ "How to use the PayPal Redirect Action" but I did not understand how to << setup the "Notify URL" to the url of the "ipn" event which should be like this: http://www.YOUR-DOMAIN.com/index.php?option=com_chronoforms&chronoform=FORM_NAME&event=ipn
>>
Besides I did not manage to activate the IPN on my PP account (I searched over the whole profile but no option is there: I only found "to activate the IPN go to instruments menu of your profile": no trace of it...)
I would be glad to buy the plugin, but I would also like to be able to make it work.
If I will not get to configure all the form, I will have to build a simple form to store data and a thank you page with a paypal button on it to get the money.
Under your PayPal account config area, there must be some place to enable the IPN (instant payment notification) service and enter the url for the ipn event of your form, please double check this, it should be easy to find.
Regards,
Max
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
Ok I found the way to activate the blooody IPN (via english help: the italian one was completely wrong - they said to go to instruments. No way! You have to go instead to "profile" (selecting the parent item) and then "selling preferences").
Anyway I have set up the notification URL to http://www.*****.it/it/index.php?option=com_chronoforms&chronoform=raduno25ott2013-Copy&event=ipn (copy/pasted link - the form is called "***2013-Copy" because is a copy of a previuos one) and enabled the IPN.
[attachment=0]Senzanome.jpg[/attachment]
I made another test payment of 2€, but I did not understand how can I return to my site after payment so I can store data, receive email and see thank you page, since on the help is stated: "You should NOT add this url in the "return url" of the "PayPal Redirect" action, the IPN event is setup to run in the background by a call from PayPal, not using the user's browser"
How can I get back after the payment?
That's how I configured the form events/action
[attachment=1]Senzanome2.jpg[/attachment]
Is there anything missing?
I noticed that a record was stored in the DB table, but it's empty except for the cf_* fields
Moreover the cronology of IPNs shows a record corresponding to the test payment I've made.
Thank you in advance for your patience
Great news!🙂
You can either add the email and db save BEFORE the "PayPal redirect", which would always work before the user pays.
Or add them like you have them now, in the listener, to insure that no data is saved/sent before the user pays successfully!
However, in the 2nd case, you will not have the form data available, please check the last part in the redirect FAQ, it explains how to store an initial record before redirecting then load the data again later in order to get the form data!
You will need a "db save" before the redirect, then to setup the custom parameter value, then a "db record loader" at the top of the "on verified".
Regarding the return, the return url should be some url on your website, not the form itself, like an article page saying "thank you, we will send you an email shortly..etc".
Regards,
Max
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
Ok I'm almost done... I validated the purchase of PP plugin: 2co ############** - email payment: REMOVED***
Will you send me the patch please?
As for the IPN, I dropped it: it's too difficult for me to configure all the ipn event stuff; Dbase after/before, recall the dbase, email before and/or after IPN... aaarghhh!!!
I could have used the simple redirect URL/User, but it seems not working because of the bloody bad encoding of the bloody link or whatever...
I will make do with the simple form that gets the data and let people make the payment (hoping that there will be no payment failures); I will manually insert the payments in my Access database when they will be done.
BTW: Is there any _simple_ way to receive the ID of the record (i.e. the cf_id) in the Paypal payment notification email (NOT the bloody IPN, but the simple email you receive when someone sends you money)? This way I will be able to identify faster the person that made the payment.
Thanks in advance
Hi giupi,
I'm not sure if you can customize the email coming from PayPal, you can pass the "cf_id" to the paypal, which we also use for the IPN loading later, but I don't know if this variable can be included in the email.
In order top pass it, just use a custom code action after the "db save" and before the "paypal redirect", and add this code:
<?php
$form->data["custom"] = $form->data["chronoform_data_cf_id"];
Then in your PayPal redirect "Extra params" box, add this:
custom=custom
that should pass the cf_id to paypal under the "custom" parameter.
Regards,
Max
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?