PaymentRequest .show(optional detailsPromise)
tests
Bad details - causes `detailsPromise` to reject.
Click on each button in sequence from top to bottom without refreshing the page.
No payment sheet should be shown, as all provided values cause an error.
If you see a payment sheet, it means the test has failed.
Rejection of detailsPromise must abort the update with an 'AbortError' DOMException.
Total in the update is a string, so converting to IDL must abort the update with a TypeError.
Total is recursive, so converting to IDL must abort the update with a TypeError.
Updating with a negative total results in a TypeError.
Updating with a displayItem with an invalid currency results in RangeError.
Updating with duplicate shippingOptions (same IDs) results in a TypeError.
Updating with a shippingOption with an invalid currency value results in a RangError.
Must throw a RangeError when a modifier's total item has an invalid currency.
Must throw a RangeError when a modifier display item has an invalid currency.
Must throw as Modifier has a recursive dictionary.
Done!
If you find a buggy test, please file a bug
and tag one of the owners .