-
Notifications
You must be signed in to change notification settings - Fork 9
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
fix: APP-571 disable credit card option when available fiat credits are below $0.5 #2592
Conversation
✅ Deploy Preview for regen-website ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
value >= MIN_USD_CURRENCY_AMOUNT, | ||
{ | ||
message: `${i18n._(MIN_USD_AMOUNT)} 0.5`, | ||
message: `${i18n._( | ||
MIN_USD_AMOUNT, | ||
)} ${MIN_USD_CURRENCY_AMOUNT.toLocaleString()}`, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
unrelated but just thought I would use our const instead of 0.5 directly
✅ Deploy Preview for terrasos ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
@erikalogie @S4mmyb see testing instructions |
This is working as expected |
Description
Closes: https://regennetwork.atlassian.net/browse/APP-571
Author Checklist
All items are required. Please add a note to the item if the item is not applicable and
please add links to any relevant follow up issues.
I have...
How to test
This can be tested on https://deploy-preview-2592--regen-marketplace.netlify.app/project/C01-010
As you can on Sanity, this project has some fiat sell orders set up: https://regen.sanity.studio/staging/structure/shared;projects;english;c9ae90a7-d3d4-4ffa-b1da-baf573b783f6
with corresponding quantities: http://redwood.regen.network:1317/regen/ecocredit/marketplace/v1/sell-orders/413 has 1 and http://redwood.regen.network:1317/regen/ecocredit/marketplace/v1/sell-orders/414 has 2 credits
but if buying all fiat credits, it would result in 0.11 + 0.12 = 0.3 which is lower than $0.5 (min accepted by Stripe) so:
Reviewers Checklist
All items are required. Please add a note if the item is not applicable and please add
your handle next to the items reviewed if you only reviewed selected items.
I have...