Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Proposal to add more details to shopping cart contents and shipping option descriptions #761

Open
rsolomakhin opened this issue Aug 17, 2018 · 1 comment

Comments

@rsolomakhin
Copy link
Collaborator

  1. We would like to add ability to specify shopping cart content images in Payment Request.
  2. We would like to add ability to specify both the primary and the second label for shipping options. This would allow distinguishing between the shipping speed ("2-day") and the expected delivery date ("Sunday, May 5").

For example:

new PaymentRequest(paymentMethods, {
  total: {label: "Total", amount: {currency: "USD", value: "50"}},
  displayItems: [{
    label: "Hat",
    icons: [{
      src: "hat64.webp",
      sizes: "64x64",
      type: "image/webp"
    },{
      src: "hat64.png",
      sizes: "64x64"
    }, {
      src: "hat128.png",
      sizes: "128x128"
    }],
    amount: {currency: "USD", value: "50"}
  }],
  shippingOptions: [{
    id: 'twoday',
    label: '2-day',
    sublabel: 'Sunday, May 2',
    amount: {currency: "USD", value: "0"}
  }]
}, {requestShipping: true});

cc @fengrui129 @zkoch @DurgaTheHutt

@marcoscaceres
Copy link
Member

Marking as future feature candidate and as needing discussion. Proposal sounds neat.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants