Re: [browser-payment-api] Should a website be able to provide a label for the "Buy" or "Checkout" button displayed in the payment app? (#56)

> Should a website be able to provide a label for the "Buy" or "Checkout" button displayed in the payment app?

The primary use cases for this (IMHO) are subscriptions, reservations, and 0-dollar authorizations. I think this can be accomplished via lines items instead. Line items strings are controlled by the merchant.

Standard purchase code snippet:
````JavaScript
var paymentDetails = {"items": [{
    "id": "total",
    "label": "Sweater",
    "amount": {"currencyCode": "USD", "value": "30.00"}}]}
````
Standard purchase UI mock up:
````
Sweater .... $30.00
[Pay]
````

Subscription code snippet:
````JavaScript
var paymentDetails = {"items": [{
    "id": "total",
    "label": "Monthly subscription (charged monthly)",
    "amount": {"currencyCode": "USD", "value": "7.00"}}]}
````
Subscription UI mock up:
````
Monthly subscription (charged monthly) .... $7.00
[Pay]
````

Reservation code snippet:
````JavaScript
var paymentDetails = {"items": [{
    "id": "total",
    "label": "Reserve room (charged at checkout)",
    "amount": {"currencyCode": "USD", "value": "100.00"}}]}
````
Reservation UI mock up:
````
Reserve room (charged at checkout).... $100.00
[Pay]
````

Subscription code snippet:
````JavaScript
var paymentDetails = {"items": [{
    "id": "total",
    "label": "Authorization (no charge)",
    "amount": {"currencyCode": "USD", "value": "0.00"}}]}
````
Subscription UI mock up:
````
Authorization (no charge) .... $0.00
[Pay]
````

---
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/56#issuecomment-200569162

Received on Wednesday, 23 March 2016 22:30:45 UTC