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

Add enableLegacyCheckout option to PaymentOptions. #365

Closed
wants to merge 1 commit into from
Closed
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
28 changes: 24 additions & 4 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -550,9 +550,13 @@ <h2>
<em>acceptPromise</em> with a <a>NotSupportedError</a>.
</li>
<li>Show a user interface to allow the user to interact with the
payment request process. The <em>acceptPromise</em> will later be
resolved by the <a>user accepts the payment request algorithm</a>
through interaction with the user interface.
payment request process. If the <code>enableLegacyCheckout</code>
value of <em>request</em>@<a>[[\options]]</a> is <code>true</code>,
then provide an option on the user interface to complete checkout
on the payee's website without selecting a payment method. The
<em>acceptPromise</em> will later be resolved by the
<a>user accepts the payment request algorithm</a> through interaction
with the user interface.
</li>
</ol>
</section>
Expand Down Expand Up @@ -1014,6 +1018,7 @@ <h2>
boolean requestPayerPhone = false;
boolean requestShipping = false;
DOMString shippingType = "shipping";
boolean enableLegacyCheckout = false;
};
</pre>
<p>
Expand Down Expand Up @@ -1108,6 +1113,17 @@ <h2>
for the payment request.
</p>
</dd>
<dt>
<dfn>enableLegacyCheckout</dfn>
</dt>
<dd>
This <em>boolean</em> value indicates whether the <a>user agent</a>
should provide an additional option for the payer to complete the
checkout process on the payee's website. For example, setting this
to <code>true</code> would let a customer opt to complete checkout
on a merchant's website if the customer does not want to or cannot
select a payment method.
</dd>
</dl>
</section>
<section data-dfn-for="PaymentItem">
Expand Down Expand Up @@ -1933,7 +1949,11 @@ <h2>
</li>
<li>Set the <code>methodName</code> attribute value of
<em>response</em> to the <a>payment method identifier</a> for the <a>
payment method</a> that the user selected to accept the payment.
payment method</a> that the user selected to accept the payment. If
the <code>enableLegacyCheckout</code> value of
<em>request</em>@<a>[[\options]]</a> is <code>true</code> and
the user selected the option to complete checkout on the payee's
website, then set <code>methodName</code> to <code>null</code>.
</li>
<li>Set the <code>details</code> attribute value of <em>response</em>
to a <a>JSON-serializable object</a> containing the <a>payment
Expand Down