- Posts: 55
- Thank you received: 2
Interrupt Checkout if Custom Serial Generator Fails
8 years 1 week ago #297861
by ohall
Interrupt Checkout if Custom Serial Generator Fails was created by ohall
-- 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
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.
8 years 1 week ago #297870
by Jerome
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.
Replied by Jerome on topic Interrupt Checkout if Custom Serial Generator Fails
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,
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.173 seconds