Re: [w3c/payment-request] Location declaration (#870)

Hm, it's tricky to communicate to the user that the first 6 digits of their card will be shared with the merchant  when they select a card in the UI, which is what you seem to be proposing to do via the `paymentmethodchangeevent`. There's a way to keep the user in the payment sheet through `paymentResponse.retry()`, but we would have to expand that API to support non-error cases as well. For example:

```javascript
// Show notification after user confirms payment.
if (/^411111.*/.exec(paymentResponse.details.cardNumber)) {
  // Returns when the user acknowledges the notification.
  await paymentResponse.retry({'notification': 'Merchant country: CANADA'});
}
```

@aestes : Do you have a way to handle this better?

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/payment-request/issues/870#issuecomment-505485520

Received on Tuesday, 25 June 2019 15:03:11 UTC