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

Just in time installation of Payment Handler #303

Closed
majaybabu opened this issue May 15, 2018 · 4 comments
Closed

Just in time installation of Payment Handler #303

majaybabu opened this issue May 15, 2018 · 4 comments

Comments

@majaybabu
Copy link

If Payment Request has both "basic" and a "payment method" then only "basic" is displayed if the "payment method" is not installed before. Is there a way "payment method" can also be displayed along with "basic" cards and if user chooses "payment handler" option the SW gets installed right then and the user can pay with the "payment handler".

We have not tested this - But what happens when there are 2 "payment methods" on the Payment Request and one of the Payment handler is installed but the other is not installed and is the default_application on payment-manifest. Does the payment sheet display both the Payment methods then ?

@gogerald
Copy link
Contributor

For efficiency, Chrome will only crawl and show not installed (JIT) payment handler if there is no installed payment handler for a payment request. For ‘basic-card’, users can always add one, so we do not crawl JIT. Note that JIT is not part of the spec, so other browsers may or may not support it.

@majaybabu
Copy link
Author

majaybabu commented May 15, 2018

Is that true even when both the payment handlers are part of the same payment-manifest/payment method. Lets say one of the payment handler on the payment manifest is installed but the other which is marked as the default_application is not installed. In that case does the Payment sheet show only the installed Payment handler or both Payment handlers are displayed.

When there are 3 Payment methods (each having one Payment handler) on Payment Request and none of those 3 Payment handlers are installed but they are the default_applications then all 3 Payment handlers will be shown on the Payment sheet correct ?

@gogerald
Copy link
Contributor

1/ only the installed payment handler
2/ correct

@ianbjacobs
Copy link
Contributor

Closing this as it seems the question was answered. We can reopen if necessary.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants