Re: [w3c/payment-request] PaymentItem.pending can be true, but transaction can "complete" (#571)

@hober, given that `DisplayItem.pending` seems to have been added for ApplePay compat, can Apple Pay complete a payment if an item is "pending"? Do you have any thoughts on pending based on the above or below?

For record keeping purposes, just adding this test case (where a payment can be completed):

```JS
const response =  await new PaymentRequest( 
  [ 
    { 
      supportedMethods: ["basic-card"], 
    }, 
  ], 
  { 
    displayItems: [ 
      { 
        label: "This is pending ... it could be lots more", 
        pending: true, 
        amount: { currency: "USD", value: "0.6"}, 
      }, 
    ], 
    total: { 
      label: "Total", 
      amount: { currency: "USD", value: "1.2" }, 
    }, 
  } 
).show();
// The pending item never changed false. 
response.complete("success");
```



-- 
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/571#issuecomment-320568849

Received on Monday, 7 August 2017 04:58:34 UTC