[w3c/payment-request] Payment Method - BasicCardErrors not showing (working) (#897)

Hi guys, 

I'm trying to display payment method validation errors for each field. 
The payment request is constructed as:

```
const methodData = [{
            supportedMethods: "basic-card",
            data: {
                supportedNetworks: networks,
            },
        }
        ];

        const details = {
            id: "super-store-order-123-12312",
            displayItems: lineItems,
            total: {
                label: "Total",
                amount: {
                    currency: "USD",
                    value: Number.parseFloat(Number.parseFloat(lineItems[0].amount.value) + Number.parseFloat(lineItems[1].amount.value)).toFixed(2)
                },
            },
        };
const request = new PaymentRequest(methodData, details, options);
```


The errors in the retry promise are as follows: (dummy data)
```
let errors = {
                paymentMethod: {
                    cardNumber: "asd",
                    cardholderName: "asd",
                    cardSecurityCode: "asd",
                    expiryMonth: "asd",
                    expiryYear: "asd",
                    billingAddress: {
                        addressLine: "asd",
                        region: "ads",
                    }
                }
            };
```


PayerErrors appears in each field, but for paymentMethod it does not show anything. Only a general error message "There was an issue while trying to execute your order. Please try again.

I'm running on Google Chrome `79.0.3945.130 (Official Build) (64-bit)`   on a MacOs Catalina. 

Thanks

-- 
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/897

Received on Thursday, 6 February 2020 22:24:53 UTC