News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

auto redirect from paypal back to website

Started by brav2222, March 24, 2011, 08:55:12 AM

Previous topic - Next topic

brav2222

After a purchase is made through my website, the customer is directed to paypal for the transaction payment. 
Is there a way to make it so it then auto re-directs back to my website after the paypal payment is made?

brav2222

I have found in my paypal admin the place under 'Website Payment Preferences' where I can have it auto-return to my website, but it's asking for a 'Return URL'

What am I supposed to put for that?

It there a page in Virtumart that It can return to that says something like 'Thank You for your purchase' or something?

brav2222

using joomla+virtumart+paypal+iDevAffiliate

I am using an affiliate program(iDevAffiliate) with my site and it requires the customer to go back to the website after the paypal transaction has been completed to get the affiliate commission to be credited.

In my paypal.com website preferences there is a place to enter a 'Return URL'

Is there a specific page/url that I need to enter for this?

After the paypal transaction has been completed by a customer, how can I get it to auto-redirect, no matter how they pay through paypal, back to my website?

So after it auto re-directs back to my website it can say something like:

"Thank you for your payment. Your transaction has been completed, and a receipt for your purchase has been emailed to you. You may log into your account at www.paypal.com to view details of this transaction. "

zanardi

When you come back to your site you see "checkout.thankyou" VirtueMart page. It is possible that iDevAffiliate requires you to put a specific Return URL; assuming you are using PayPal Legacy, this information is found in "Extra info", where you can see the HTML / PHP code of the PayPal form, and can be changed there according your needs.
--
Francesco (zanardi)
http://extensions.gibilogic.com
@gibilogic on Twitter

Bigjohn

Sorry to wake up a sleeping thread, but two things -
I dont' think this answered his question.

In the paypal extra info HTML I can see that we're constructing a "return URL"
In PAYPAL - On the paypal website for the virtumart store account - there is a feature called "Auto Return" and it asks for a URL.

What URL would we put there?  That is the question.

hrhsii

If you are using the API or IPN (legacy) version of paypal, in extra info bit make sure

"return" => SECUREURL ."index.php?option=com_virtuemart&page=checkout.result&order_id=".$db->f("order_id"),

is in place

in PayPal use:
[url="http://www.domain.com/index.php?option=com_virtuemart&page=checkout.result&order_id=".$db-"]http://www.domain.com/index.php?option=com_virtuemart&page=checkout.result&order_id=".$db-[/url]>f("order_id")

mbit

Quote from: hrhsii on August 18, 2011, 18:08:22 PM
If you are using the API or IPN (legacy) version of paypal, in extra info bit make sure

"return" => SECUREURL ."index.php?option=com_virtuemart&page=checkout.result&order_id=".$db->f("order_id"),

is in place

in PayPal use:
[url="http://www.domain.com/index.php?option=com_virtuemart&page=checkout.result&order_id=".$db-"]http://www.domain.com/index.php?option=com_virtuemart&page=checkout.result&order_id=".$db-[/url]>f("order_id")
i added this url as a returl url but paypal keeps returning customer at my main page . :/ any ideas how to change this?