Passing error messages during checkout process

Help for integrating the Laravel package
Forum rules
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
MirkoPinna
Posts: 16
Joined: 04 Sep 2017, 12:35

Passing error messages during checkout process

Post by MirkoPinna » 23 Sep 2017, 13:51

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?

User avatar
aimeos
Administrator
Posts: 7836
Joined: 01 Jan 1970, 00:00

Re: Passing error messages during checkout process

Post by aimeos » 23 Sep 2017, 14:00

Throw a \MShop\Service\Exception. They will be displayed by the HTML clients
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

MirkoPinna
Posts: 16
Joined: 04 Sep 2017, 12:35

Re: Passing error messages during checkout process

Post by MirkoPinna » 23 Sep 2017, 14:15

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?

User avatar
aimeos
Administrator
Posts: 7836
Joined: 01 Jan 1970, 00:00

Re: Passing error messages during checkout process

Post by aimeos » 25 Sep 2017, 20:53

You should have a look at the ai-payments extension which does that already:
https://github.com/aimeoscom/ai-payment ... y.php#L724
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply