Is it possible when user complete the payment via paypal, and if the payment is completed (not in paypal pending) then the user is redirected to download page?
What is the value should I catch in the custom redirection page template?
Thanks
duckz
Is it possible when user complete the payment via paypal, and if the payment is completed (not in paypal pending) then the user is redirected to download page?
What is the value should I catch in the custom redirection page template?
Thanks
duckz
Comments
Comment #1
duckzland commentedis this code safe to use???
Comment #2
giorgio79 commentedNot sure about it, but if you install me aliases, you can set the landing page to user/me/purchased-files and the user will be taken there...
http://drupal.org/project/me
Comment #3
mrtoner commentedYou're asking several questions; I'll briefly answer each:
- Yes, you can direct the user to a specific page when the payment is successful. Use the Successful payment URL option for your product.
- Yes, you can check the payment status by looking at the variables returned by PayPal when the user returns to your site. Usually $_GET, but can be $_POST if you've enabled the Return transaction variables using POST method to the specified successful payment URL option. The variable to check is usually payment_status, but you should also check st. You're looking for Completed.
- I have no comment on the code you posted.