it-ony / payment-request

Feedback for the W3C Web Payments Browser API https://www.w3.org/TR/payment-request/
1 stars 0 forks source link

UX: figure out upfront if the user has setup addresses and credit card data #8

Open it-ony opened 7 years ago

it-ony commented 7 years ago

According to the draft of the w3c standard the canMakePayment method can be used to determinate if the user can perform the checkout with the current PaymentRequest.

For some integration scenarios it would make sense to query upfront if the user is kind of ready to use the payment request api for a simplified checkout. If the user doesn't have e.g. a single address stored in the browser vendors implementation of the address book, the checkout itself could be faster without the payment request api, e.g. due having autocompletion of the user address either via the autofill option or via a google maps auto completion.

rsolomakhin commented 7 years ago

@zkoch Should canMakePayment take existance of user shipping address into account?