You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When creating a request, the expectedAmount property can be expressed as a number OR string. However, when expressed as a number, it cannot exceed 2^53 - 1 (9,007,199,254,740,991) which would result in a loss of precision. In this case, it throws the error "expectedAmount must be a positive integer".
When this error message occurs, the best solution is to express the expectedAmount as a string.
The error message doesn't make this solution clear.
Solution
Change the error message (in all the places where it occurs) to better explain the solution.
Update the docs to better explain this.
The text was updated successfully, but these errors were encountered:
Problem
When creating a request, the
expectedAmount
property can be expressed as anumber
ORstring
. However, when expressed as anumber
, it cannot exceed 2^53 - 1 (9,007,199,254,740,991) which would result in a loss of precision. In this case, it throws the error "expectedAmount must be a positive integer".When this error message occurs, the best solution is to express the
expectedAmount
as astring
.The error message doesn't make this solution clear.
Solution
The text was updated successfully, but these errors were encountered: