I get WSOD if the payment is not valid - invalid request.

In the log i get this message

Stripe\Error\InvalidRequest: Amount must convert to at least 50 cents. Lei1.00 converts to approximately €0.22. in Stripe\ApiRequestor->handleApiError() (line 110 of /d8_path/vendor/stripe/stripe-php/lib/ApiRequestor.php).

I'm not sure this issue it's about this module or it's something that should be solved in Commerce 2.x
but i thought to report it anyway (here).

Comments

vasike created an issue. See original summary.

bojanz’s picture

I don't see how we'd solve this on either side, since we have no currency conversion.
The only thing we can do is make sure that the error is handled gracefully.

vasike’s picture

indeed this issue is about better error handling here.
@bojanz thanks

scotthooker’s picture

Yep one thing left to port is the error handling.

vasike’s picture

Status: Active » Fixed
Parent issue: » #2859278: ErrorHelper implementation

This seems related with Error handling.
The progress done within #2859278: ErrorHelper implementation seems to solve the issue.

The customer will get back to the payment information checkout step.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.