Closed jruillier closed 2 years ago
Hi @mribeiro202,
Hello @jruillier Can you provide us with a concrete case, as we have no errors in the log. The guest has an ID that can be transformed into a customer ID, we can't reproduce the problem.
Hi,
I think that he was right :
in classes/actions/ValidationOrderActions.php, in saveCard() (line 505), there's a verification on $stripeCustomer->id == null
.
The line above this check is :
$stripeCustomer = $stripeCustomer->getCustomerById($this->context->customer->id, $stripeAccount->id);
So yes, $this->context->customer->id
might be empty somehow.
In logs, i've got an error with this :
Exception on hook paymentOptions for module . You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near \') AND (id_account = \"xxxxxxxxx\") LIMIT 1\' at line 3 SELECT * FROM `meoshop_stripe_customer` WHERE (id_customer = ) AND (id_account = \"xxxxxxxxxx\") LIMIT 1
Seems linked to #95 fixed according to @mribeiro202 but PR still opened and code not in develop branch...
@Afayadas look after this together to prevent regression on next release.
Hi jruillier, Can you give us more information?