Hello,
I'm not sure to know how you get this error, but maybe one of your customer keep his pay order email, and click on the "pay now" link ?... For an already payed order ? As result stripe can't generate (again) a token for a payed order, and so HikaShop can't post a response WITH this token.
It's just a guess from what we know...
To avoid this you can edit your stripe.php, around line 128, you have this :
...
$this->loadPaymentParams($dbOrder);
if(empty($this->payment_params))
{
echo 'The system can\'t load the payment params';
return false;
}
$this->loadOrderData($dbOrder);
$return_url...
Replace it for this :
...
$this->loadPaymentParams($dbOrder);
if(empty($this->payment_params))
{
echo 'The system can\'t load the payment params';
return false;
}
if (!isset($_POST['stripeToken'])) {
echo 'Token is missing, possible to finish this order';
return false;
}
$this->loadOrderData($dbOrder);
$return_url...
That will avoid this kind of error in the futur, and keep your Confirmed (or Shipped) order status.
Hope this will fit your needs.
Regards