simoncarr Posted July 1, 2012 Share Posted July 1, 2012 Hi, I am trying to chase down a bug that I have my store. The impact is being felt in this file modules/paypal/payment/submit.php When I confirm a payment in PayPal by clicking pay now. I get returned to this file but just get a blank page with the message no Currency. The code from this file where the script dies is below. function submitConfirm() { global $cookie, $smarty, $ppPayment, $cart; if (!$cookie->isLogged(true)) { header('location:../../../'); exit; die('Not logged'); } elseif (!$id_currency = (int)(Tools::getValue('currency_payement'))) die('No currency'); elseif (!$cart->getOrderTotal(true, PayPal::BOTH)) die('Empty cart'); $currency = new Currency((int)($id_currency)); if (!Validate::isLoadedObject($currency)) die('Invalid currency'); $cookie->id_currency = (int)($id_currency); getAuthorization(); } Tools::getValue('currency_payement') is returning 0 But I don't know where this getValue function get's it's values from. They are not in the settings.inc.php and not in the configuration table. Can anyone help? Thanks Simon Link to comment Share on other sites More sharing options...
bellini13 Posted July 1, 2012 Share Posted July 1, 2012 that function looks in the HTTP GET or POST variables, which means that the referring page is meant to be passing them. 1 Link to comment Share on other sites More sharing options...
simoncarr Posted July 1, 2012 Author Share Posted July 1, 2012 Thanks belliini So it looks like PayPal is connecting incorrectly to my site when it sends the customer back to payment confirmation page. However I am thinking that the problem is happening before that because PayPal is not taking the payment. Which makes me think that my site is sending incorrect information to paypal that it is not able to deal with. This is strange because the paypal screen looks fine, it lists the contents of the basket correctly along with the price and allows the user to login to paypal. It is only when you click Pay Now that the error occurs. I have setup another Prestashop on my site as a test and that works fine. The only thing that might be relevant is that this is the first time I have tested the system since i moved the prestashop installation from my local test server to my hosting provider. Do you have any ideas where I should start with this issue? Thanks Simon Link to comment Share on other sites More sharing options...
davish Posted September 15, 2012 Share Posted September 15, 2012 I'm having a similar issue, except I get the "no currency" screen when you click to confirm the order - before you even get to the Paypal site. I'd love to know if anyone has solved this issue in the past and how they did it. Thanks, Holly Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now