Dirty Butter Posted September 13, 2018 Share Posted September 13, 2018 I have directions for customers to return to our store after paying with PayPal. I don't remember what the url is that PayPal sends the customer TO. And which file is it, so I can make sure it still says what I want it to say. Link to comment Share on other sites More sharing options...
bsmither Posted September 13, 2018 Share Posted September 13, 2018 In the PayPal gateway class file, we see: 'notify_url' => $GLOBALS['storeURL'].'/index.php?_g=rm&type=gateway&cmd=call&module=PayPal', 'return' => $GLOBALS['storeURL'].'/index.php?_a=complete', 'cancel_return' => $GLOBALS['storeURL'].'/index.php?_a='.$cancel_return, where $cancel_return is "confirm". The "complete" page is where CubeCart finalizes any Order Summary activity (including plugins and snippets), empties the cart, etc. Link to comment Share on other sites More sharing options...
Dirty Butter Posted September 13, 2018 Author Share Posted September 13, 2018 I'm sorry to be so dense, but I still don't know what the url is for the page they return to. Link to comment Share on other sites More sharing options...
bsmither Posted September 13, 2018 Share Posted September 13, 2018 The complete URL will be: $GLOBALS['storeURL'].'/index.php?_a=complete where $GLOBALS['storeURL'] is something like: https://dirtybutter.com/plushcatalog So: https://dirtybutter.com/plushcatalog/index.php?_a=complete Link to comment Share on other sites More sharing options...
Dirty Butter Posted September 13, 2018 Author Share Posted September 13, 2018 Well that's what I thought you meant, but that redirects to //dirtybutter.com/plushcatalog/index.php?_a=basket even when I'm logged in to the customer who just bought from us. I'm on 6.2.2 with a few of the commits right after 6.2.2 was released. Link to comment Share on other sites More sharing options...
bsmither Posted September 14, 2018 Share Posted September 14, 2018 Maybe. The "_a=complete" URL is what CubeCart's PayPal gateway tells PayPal to display as the link to send the customer back. There is also (or so I've heard) a setting in your PayPal Merchant Control Panel where you can specify the URL on the PayPal transaction page to display as the link to send the customer back. I do not know which takes priority: the value passed to PayPal from CubeCart's PayPal gateway, or the setting that may be present in a PayPal Merchant Control Panel screen. So, examine all your settings at PayPal to determine if there is an established value for this function. Link to comment Share on other sites More sharing options...
Dirty Butter Posted September 14, 2018 Author Share Posted September 14, 2018 There IS a place in PayPal to set the return url AND I already had it set to //dirtybutter.com/plushcatalog/index.php?_a=complete. It's just weird that the customer returned to the page I showed in the post, but I cannot figure out how they got there. I guess I'm going to have to make a fake PayPal account and buy something for a penny. :) Link to comment Share on other sites More sharing options...
Dirty Butter Posted September 25, 2018 Author Share Posted September 25, 2018 I ended up making a hidden document with the Thank you code in it. I then changed the page PayPal takes them back to. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.