- From: Adrian Hope-Bailie <notifications@github.com>
- Date: Fri, 02 Dec 2016 01:54:49 -0800
- To: w3c/browser-payment-api <browser-payment-api@noreply.github.com>
Received on Friday, 2 December 2016 09:55:31 UTC
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