Buy Now
Sign in

Download pdf after Paypal payments. How Redirect?

marcogiulio , June 28 2019, 16:53
M
marcogiulio 2
June 28 2019, 16:53 #387897
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 7
June 29 2019, 02:23 #387902
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.
Web developer at SkySpider.com.au - I DO NOT work for ChronoEngine!
Donations: paypal.me/healyhatman
Professional Work: kamron@skyspider.com.au
Custom CF / CC Plugins and Extensions: skyspider.com.au/store
M
marcogiulio 2
June 29 2019, 14:46 #387911
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 7
June 29 2019, 14:52 #387912
you don't need to redirect to a different form after completion. Same form, but to a completion event, using {url/full:complete}
Web developer at SkySpider.com.au - I DO NOT work for ChronoEngine!
Donations: paypal.me/healyhatman
Professional Work: kamron@skyspider.com.au
Custom CF / CC Plugins and Extensions: skyspider.com.au/store