Skip to content
This repository has been archived by the owner on Mar 5, 2024. It is now read-only.

Exception thrown in Model/Gateway/Implementation.php when Increment Id contains non-numeric characters #24

Open
samface opened this issue Feb 22, 2021 · 0 comments

Comments

@samface
Copy link

samface commented Feb 22, 2021

In Model/Gateway/Implementation.php there is line 308 that tries to mathematically add 100 to the order's increment id. This fails and results in an exception if the increment id has a non-numeric prefix or suffix. If a numeric value is really required, I suggest removing any possible prefix and suffix from the increment id first. Checkout magento/module-sales-sequence on how to fetch these values.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant