W3C home > Mailing lists > Public > public-webpayments-specs@w3.org > May 2019

Re: [w3c/payment-handler] Why does a Payment App need to see the line items? (#91)

From: Rouslan Solomakhin <notifications@github.com>
Date: Fri, 03 May 2019 15:45:54 +0000 (UTC)
To: w3c/payment-handler <payment-handler@noreply.github.com>
Cc: Subscribed <subscribed@noreply.github.com>
Message-ID: <w3c/payment-handler/issues/91/489141815@github.com>
I would prefer that we have both semantic tagging and the `shareWithPaymentApp` boolean for explicit opt-in by merchant.

```idl
dictionary PaymentItem {
  required DOMString label;
  required PaymentCurrencyAmount amount;
  boolean pending = false;
  boolean shareWithPaymentApp = false;
  PaymentItemCategory category;
};

enum PaymentItemCategory {
  "subtotal",
  "tax",
  "shipping",
};
```

-- 
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-handler/issues/91#issuecomment-489141815
Received on Friday, 3 May 2019 15:46:26 UTC

This archive was generated by hypermail 2.3.1 : Friday, 3 May 2019 15:46:27 UTC