Passing error messages during checkout process
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!
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
-
- Posts: 16
- Joined: 04 Sep 2017, 12:35
Passing error messages during checkout process
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?
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
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, give us a star
If you like Aimeos, give us a star
-
- Posts: 16
- Joined: 04 Sep 2017, 12:35
Re: Passing error messages during checkout process
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?
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
You should have a look at the ai-payments extension which does that already:
https://github.com/aimeoscom/ai-payment ... y.php#L724
https://github.com/aimeoscom/ai-payment ... y.php#L724
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star