'How to display stripe max amount limit error to user

I have done my one project in Laravel. I have used cashier package in it for payment. In my projects payments are done in multiple currency. Here I am stuck in one scenario where I want to display maximum amount error to user different currency wise.

Like cashier provides different error code like \Stripe\Error\InvalidRequest, \Stripe\Error\Authentication, \Stripe\Error\ApiConnection, \Stripe\Error\Base.

Please help me to solve this issue.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source