-
Notifications
You must be signed in to change notification settings - Fork 12
min send amount in pay-form is hard coded at 0.02 #1071
Copy link
Copy link
Labels
area: backgroundImprovements or additions to extension background scriptImprovements or additions to extension background scriptarea: popupImprovements or additions to extension popupImprovements or additions to extension popupbugSomething isn't workingSomething isn't workinggood first issueGood for newcomers, including for Hacktoberfest.Good for newcomers, including for Hacktoberfest.
Metadata
Metadata
Assignees
Labels
area: backgroundImprovements or additions to extension background scriptImprovements or additions to extension background scriptarea: popupImprovements or additions to extension popupImprovements or additions to extension popupbugSomething isn't workingSomething isn't workinggood first issueGood for newcomers, including for Hacktoberfest.Good for newcomers, including for Hacktoberfest.
Type
Fields
Give feedbackNo fields configured for Bug.
Projects
Status
Done
When sending one-time payments, the minimum sendable amount is hard-coded at 2 units, regardless of connected wallet and wallet addresses on the website.
When sending from MXN to USD, the min sendable amount should be around 0.19MXN. Currently the transactions fail, but the user doesn't know why they failed ("We were unable to process this transaction. Please try again!").
This will go hand-in-hand with #905.
We should set the min in the one-time-pay form to be dependent on current website's
minSendAmountvalue. Relevant files to be updated:web-monetization-extension/src/background/services/monetization.ts
Line 414 in 826cbb8
web-monetization-extension/src/background/services/paymentManager.ts
Line 135 in 826cbb8
web-monetization-extension/src/pages/popup/components/PayWebsiteForm.tsx
Lines 103 to 106 in 826cbb8
The
PaymentManagerwould need aget minSendAmount(): bigintwhich returnsminSendAmountacross all payable sessions