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

If I understand the argument for this correctly then I think it would be more appropriate for the payment method specific `details` from the response to be FormData only if the payment method is basic card.

i.e. We can spec this in the Basic Card Payment Method Spec

```JS
if(paymentResponse.methodName == "basic-card"){
    cardPaymentForm.fillWith(paymentResponse.details);

    if( cardPaymentForm.checkValidity() ) { 
      cardPaymentForm.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-264416124

Received on Friday, 2 December 2016 09:55:31 UTC