Forums

Download pdf after Paypal payments. How Redirect?

marcogiulio 28 Jun, 2019
Hi, i want to download a pdf after paypal payment. But cant to reindirect on my website.
i try with demo form for tcpdf, i can make the payment, the file is created on the server, but I cannot reindirect my customers.
How do?
Thk.
healyhatman 29 Jun, 2019
You should do it on your payment success page they're redirected back to after the payment. You'll have to retrieve the payment details from the database (if you've stored them, as you probably should) so you can build your PDF. And you should have the download in a separate event, that you redirect to AFTER A DELAY (there's a setting for that in the redirect action) on your success page.
marcogiulio 29 Jun, 2019
please learning me. pleaseee.
In the first event(load1) start the paypal site.
So when i open the page, i go in paypal site, afther payment, i will go in the form for make the pdf(event:load), but not secure.
In "Return url after completion" i write the complete url for event "load" ( index.php/component/chronoforms6/?chronoform=pdf2&event=load).
But i think is wrong. help
p.s. sorry bad english
healyhatman 29 Jun, 2019
you don't need to redirect to a different form after completion. Same form, but to a completion event, using {url/full:complete}
This topic is locked and no more replies can be posted.