Interrupt Checkout if Custom Serial Generator Fails

  • Posts: 48
  • Thank you received: 0
  • Hikashop Business
10 months 3 days ago #297861

-- url of the page with the problem -- : shop.ultamation.com

Hi,

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.
Thanks,
Oliver

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

  • Posts: 23530
  • Thank you received: 3653
  • MODERATOR
10 months 3 days ago #297870

Hello,

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.

Regards,


Jerome - Obsidev.com
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.055 seconds
Powered by Kunena Forum