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
Verifying the total #702
Comments
Correct.
There is no expectation in the spec that the browser do any mathematical calculations of any kind. |
Perhaps then it makes sense to say "It is the developer's responsibility to verify that the total amount is the sum of these items before generating the PaymentRequest." |
Good suggestion, but I need to check the context, because "before generating" doesn't apply in all cases. Consider, the total can be updated by |
Yes, perhaps not "before generating" but "It is the developer's responsibility, when generating or updating the PaymentRequest, to verify that the total amount is the sum of these items." |
@stpeter thanks for the suggestion - that makes it more clear. I'll add it. |
The spec is unclear on this point: "It is the developer's responsibility to verify that the total amount is the sum of these items."
Is it the responsibility of the merchant to verify these amounts before generating the PaymentDetails?
Is it the responsibility of the browser to verify these amounts after receiving the PaymentDetails from the merchant?
The text was updated successfully, but these errors were encountered: