Skip to content

Commit

Permalink
Add recommended apps to payment method data dictionary and definition
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason Normore committed Aug 9, 2016
1 parent d5f3794 commit 34c72df
Showing 1 changed file with 29 additions and 1 deletion.
30 changes: 29 additions & 1 deletion index.html
Expand Up @@ -585,6 +585,7 @@ <h2>PaymentMethodData dictionary</h2>
dictionary PaymentMethodData {
required sequence&lt;DOMString&gt; supportedMethods;
object data;
sequence&lt;RecommendedPaymentApp&gt; recommendedApps;
};
</pre>
<p>
Expand All @@ -599,6 +600,33 @@ <h2>PaymentMethodData dictionary</h2>
<dt><code>data</code></dt>
<dd><code>data</code> is a <a>JSON-serializable object</a> that provides optional information that
might be needed by the supported payment methods.</dd>
<dt><code>recommendedApps</code></dt>
<dd><code>recommendedApps</code> is a <a><code>RecommendedPaymentApp</code></a> dictionary that provides the user agent
with enough information to invoke the app.</dd>
</dl>
</section>

<section>
<h2>RecommendedPaymentApp</h2>
<pre class="idl">
dictionary RecommendedPaymentApp {
required URLString request_url;
required DOMString label;
DOMString icon;
};
</pre>
<p>
A <a><code>RecommendedPaymentApp</code></a> is used to supply the user agent with enough information to invoke the
payment app with or without prior registration. The following fields are part of <a><code>RecommendedPaymentApp</a></code>:
</p>
<dl>
<dt><code>request_url</code></dt>
<dd><code>request_url</code> is a string that represents the <dfn>request URL</dfn>, which is the <a>URL</a> that
accepts payment request messages via HTTP POST.</dd>
<dt><code>label</code></dt>
<dd><code>label</code> is a string that represents the lable for this option as it is usually displayed to the
user when selecting a payment app.</dd>
<dt><code>icon</code></dt>
</dl>
</section>

Expand Down Expand Up @@ -1369,4 +1397,4 @@ <h2>Exposing user information</h2>
</div>

</body>
</html>
</html>

0 comments on commit 34c72df

Please sign in to comment.