franksmule / prestashop-stripejs

Prestashop StripeJS module
http://omcfarlane.co.uk/prestashop-stripe-module-free/
35 stars 23 forks source link

Prestashop Exception at Paiement #26

Open NadjibBELLOUNDJA opened 9 years ago

NadjibBELLOUNDJA commented 9 years ago

Hi Ollie,

I tried the stripe module on my website. I created a stripe account and everything is fine with the module in my Back Office. Here is a screenshot of my BO: http://i.imgur.com/uoiF9Bk.jpg.

Yet, at the final step, after the customer has clicked on the "Pay" button, I get this error message on the page:

[PrestaShopException]

Can't load Order state status at line 24 in file override/classes/PaymentModule.php

  1. $order_status = new OrderState((int)$id_order_state, (int)$this->context->language->id);
  2. echo("Override_PaymentModule_ORDERSTATE-".$id_order_state."|".(int)$this->context->language->id);
  3. //echo("ORDER STATE " + (int)$id_order_state + " " + (int)$this->context->language->id);
  4. if (!Validate::isLoadedObject($order_status))
  5. throw new PrestaShopException('Can\'t load Order state status');
  6. if (!$this->active)
  7. die(Tools::displayError());
  8. // Does order already exists ?
  9. if (Validate::isLoadedObject($this->context->cart) && $this->context->cart->OrderExists() == false)

PaymentModule->validateOrder - [line 558 - modules/stripejs/stripejs.php] - [9 Arguments] StripeJs->processPayment - [line 28 - modules/stripejs/controllers/front/default.php] - [1 Arguments] StripeJsDefaultModuleFrontController->validation - [line 21 - modules/stripejs/controllers/front/default.php] StripeJsDefaultModuleFrontController->initContent - [line 180 - classes/controller/Controller.php] ControllerCore->run - [line 373 - classes/Dispatcher.php] DispatcherCore->dispatch - [line 28 - index.php]

Have you already encountered this error? DO you have any ideas on how to fix it. Many thanks in advance.