[Skip to main content](#vessel-content)

#   Interrupt Checkout if Custom Serial Generator Fails

##

- **[ohall](/forum/user/16115-ohall "View ohall's Profile")**
- [![ohall's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/16115-ohall "View ohall's Profile") Topic Author
- [ Offline](/forum/user/16115-ohall)

Less More

- Posts: 55
- Thank you received: 2
-
-

8 years 2 months ago [\#297861](#297861) by [ohall](/forum/user/16115-ohall "View ohall's Profile")  *[Interrupt Checkout if Custom Serial Generator Fails](/forum/17-serial-how-to/895705-interrupt-checkout-if-custom-serial-generator-fails#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 &quot;fails&quot; 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")* was created by *[ohall](/forum/user/16115-ohall "View ohall's Profile")*

-- 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](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzE3LXNlcmlhbC1ob3ctdG8vODk1NzA1LWludGVycnVwdC1jaGVja291dC1pZi1jdXN0b20tc2VyaWFsLWdlbmVyYXRvci1mYWlscz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26402
- Thank you received: 4081
-
- [](http://obsi.dev)
-

8 years 2 months ago [\#297870](#297870) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Interrupt Checkout if Custom Serial Generator Fails](/forum/17-serial-how-to/895705-interrupt-checkout-if-custom-serial-generator-fails#297870 "-- 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 &quot;fails&quot; 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")*

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 &amp; HikaSerial developer / HikaShop core dev team.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzE3LXNlcmlhbC1ob3ctdG8vODk1NzA1LWludGVycnVwdC1jaGVja291dC1pZi1jdXN0b20tc2VyaWFsLWdlbmVyYXRvci1mYWlscz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

Moderators: [Obsidev](/forum/user/7040-obsidev "View Obsidev's Profile")

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.047 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
