v154 · spc locale
Building the request
A real PaymentRequest for the secure-payment-confirmation method, constructed from the fields below every time you change one. Nothing is shown to you — that needs a credential and a gesture — but everything up to that point is genuinely exercised.
The fields
Building…
The quirks are not hypothetical failures — each one is constructed for real and its result is printed verbatim, including the ones that succeed. The pair of getters is the instructive part: one that returns a value is serialised like any other property and constructs fine, and one that throws fails with a message about JSON serialisation that never mentions the getter. This page originally claimed both would fail; measuring them said otherwise.
The payload
credentialIds and challenge are binary. They appear here as their byte lengths because that is all a JSON view can honestly show — the real request carries the bytes.
What each field is doing
| field | checked at | what it is for |
|---|