Interrupt Checkout if Custom Serial Generator Fails

  • Posts: 51
  • Thank you received: 2
4 years 1 week ago #297861

-- url of the page with the problem -- :


Is it possible to have a custom serial generator stop the checkout process/transaction if the generator function "fails" for some reason.
I thought returning false from the generate() function might do this, but it appears just not to attach the serials to the order.

Please Log in or Create an account to join the conversation.

  • Posts: 25435
  • Thank you received: 3946
4 years 1 week ago #297870


The general workflow do not authorize you to do so.

An order can be create without a payment ; like for example with "paypal" when the order is created an afterwards the customer is redirected to the platform so he can pay the order.
He might not pay it at all, but when it will be done, the order will be confirm.
You don't want to refuse the confirmation of the order since the customer just pay it.
So you have to deal with the serial issue afterwards.

If you can know in advance if the serial generation will fail ; you can try to refuse the creation of the order. It will be compatible with all kind of payment plugin and you will be sure that the customer do not pay for something which wont be handle afterwards.

But no, the serial generation must no interact with the order modification ; a paid order must be mark as paid.


Jerome -
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

Please Log in or Create an account to join the conversation.

Moderators: Obsidev
Time to create page: 0.056 seconds
Powered by Kunena Forum