Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add specific type and min supported amount in error response for the payments below min supported amount #3728

Open
mgascam opened this issue Jan 15, 2025 · 0 comments

Comments

@mgascam
Copy link

mgascam commented Jan 15, 2025

Description

Currently, for Tap To Pay and Card Payments, when the amount is lower than the minimum supported in a country, we get a wc_stripe_capture_error

To handle it correctly and show complete necessary information on the mobile apps, we need:

  • Specific error type, e.g. wcpay_capture_error_amount_too_small instead of generic wcpay_capture_error
  • The minimum amount in the country, e.g., extra field "minimum_amount": "500" in the response

Additional Context

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant