Page 1 of 1

Passing error messages during checkout process

Posted: 23 Sep 2017, 13:51
by MirkoPinna
Hi everybody,
I implemented a custom payment provider and i want to pass errors through the checkout process as my payment provider can give me errors and i want to display them. How can i do it? can i show errors in the /confirm page?

Re: Passing error messages during checkout process

Posted: 23 Sep 2017, 14:00
by aimeos
Throw a \MShop\Service\Exception. They will be displayed by the HTML clients

Re: Passing error messages during checkout process

Posted: 23 Sep 2017, 14:15
by MirkoPinna
Thanks for your reply. Also there is a way to edit the form? \Aimeos\MShop\Common\Item\Helper\Form\Standard
I want to ask for date int the MMYY format and set a default value in a select, is it possible?

Re: Passing error messages during checkout process

Posted: 25 Sep 2017, 20:53
by aimeos
You should have a look at the ai-payments extension which does that already:
https://github.com/aimeoscom/ai-payment ... y.php#L724