Re: [w3c/browser-payment-api] The "data" member of PaymentMethodData doesn't seem to actually be used for anything (#338)

> Finding out what Payment Apps can be used to fulfill that payment request requires asking the payment method to do some preprocessing first.

@domenic, I think payment methods specs are implemented by payment apps. In a sense, a payment method is an interface and the payment apps are implementations. So "asking the payment method to do some preprocessing" is equivalent to saying "asking the payment apps to do some processing." The way we achieve this is through JSON-serializing the method-specific data, passing that over IPC to the payment apps, which then JSON-parse the data for their own needs.

-- 
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/browser-payment-api/issues/338#issuecomment-267160687

Received on Wednesday, 14 December 2016 21:24:12 UTC