Skip to content
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

Introduce paymenRequestID #292

Merged
merged 7 commits into from
Dec 22, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,7 @@ <h2>
Promise&lt;void&gt; abort();
Promise&lt;boolean&gt; canMakePayment();

readonly attribute DOMString? paymentRequestID;
readonly attribute PaymentAddress? shippingAddress;
readonly attribute DOMString? shippingOption;
readonly attribute PaymentShippingType? shippingType;
Expand Down Expand Up @@ -342,6 +343,9 @@ <h2>
The <a>PaymentRequest</a> constructor MUST act as follows:
</p>
<ol>
<li>
If a <code>paymentRequestID</code> was not provided during construction, generate a <code>paymentRequestID</code>.
</li>
<li>If the length of the <var>methodData</var> sequence is zero, then
<a>throw</a> a <a>TypeError</a>; optionally informing the developer
that at least one <a>payment method</a> is required.
Expand Down Expand Up @@ -1392,6 +1396,7 @@ <h2>
interface PaymentResponse {
serializer = { attribute };

readonly attribute DOMString paymentRequestID;
readonly attribute DOMString methodName;
readonly attribute object details;
readonly attribute PaymentAddress? shippingAddress;
Expand All @@ -1409,6 +1414,10 @@ <h2>
following fields:
</p>
<dl>
<dt><code><dfn>paymentRequestID</dfn></code></dt>
<dd>
The same <code>paymentRequestID</code> present in the original <code>PaymentRequest</code>.
</dd>
<dt>
<dfn>methodName</dfn>
</dt>
Expand Down