Hi,
my setup On IPN
On Verified:
1- custom code to insert the paypal variables in the db - result OK
2- mail with custom template i put the same paypal variable- result OK
3- custom code with simple html text with message OK VERIFIED - result d'ont show
On Invalid - custom code with simple html text with message - INVALID , please contact admin
On Error - custom code with simple html text with message - ERROR , please contact admin.
Question is:
why the response paypal ipn always returns page ON Invalid
thanks a lot
Cornelio
Hi Cornelio,
How do you receive the verified mail ? the ipn event should not be accesses by the browser, its a page which PayPal "only" should access, you should not set the "return url" to that page either.
Best regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
Hi Cornelio,
If these verified actions are processed then how do you know that the "invalid" event is processed ?
Best regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
Hi Cornelio,
This means that you access the ipn event address using the browser ?
If yes then this is wrong and should not be done, the ipn event should be accesses by PayPal only.
Best regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
Hi Cornelio,
Just add any other url, like a url for an article or create a new form event and add the url to it.
If you download the new Chronoforms v6 and install it (it will install as a new extension) then you can test the demo PayPal form (click new) and check how the PayPal action is configured with multiple events.
Best regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
Great Max!
thank you very much for your patience.
certainly I try the new ChronoForms v6
Best Regards
Cornelio
Hi Cornelio,
The return url now points to a form event or an article ? if its a form event then you can use {txn_id} if you are using v5, and {data:txn_id} if you are using v6.
Best regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
Hi Cornelio,
you mean in PHP ? then you should use
$form->data["txn_id"]
Best regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
Hi cornelio,
In the custom code inside "download_after_pay", please use this code:
<?php
pr($form->data);
this will list all the data returned by PayPal on the page after purchase.
Best regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
Hi Cornelio,
You get this result after you complete a purchase and get redirected by PayPal back to your website ?
Best regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
Hi Max,
Yes just like this.
Best Regards
Cornelio
Hi Cornelio,
Ok, I didn't expect this, but what do you need to do with the txn_id number ? if you want to store it or send it by email then maybe you can use it in the ipn event instead.
Best regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
Hi Max,
I could do this On IPN event but
as I understand it in IPN event we can not stand HTML because the listener works in the background, is it?
Best Regards
Cornelio
Hi Cornelio,
In the ipn you can not "display" any thing to the user, but you can send an data in the email.
If you want to display the txn_id to the user on the website then its not possible in this case, but you can store the data in the database in the ipn, then send the data by email to the user, or let them load it later on the website.
Best regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.