Re: [w3c/browser-payment-api] Making this API work with HTML Forms (#330)

Basically, the missing piece is being able to "hydrate" a form with a payment request (or more generally with form data). 

Ideally: 

```JS
// if paymentResponse is or inherits from FormData
paymentForm.fillWith(paymentResponse);

//Then we end up in form nirvana 
if( form.checkValidity() ) { 
  form.submit();
} else {
  // fix form issues....
} 
``` 



-- 
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/330#issuecomment-262714863

Received on Thursday, 24 November 2016 08:14:45 UTC