-
Notifications
You must be signed in to change notification settings - Fork 135
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
Support different amounts per payment method. #211
Conversation
This is a proposal for issue w3c#4: Should it be possible to vary amounts depending on payment method. The goal of this change is to make it simple for web developers in the majority case when price does not vary by payment method. If a developer wishes to have a different price for specific payment methods then they include a PaymentDetailsModifier that includes the new total amount and optionally additional display items that are appended to the main payment details display items for display. This allows the developer to explain why the price is different due to a discount or surcharge, for example.
I am overall positive about this change because it gives us the ability to specify surcharges and discounts for things like debit cards and credit cards. It does not handle different currency for a payment method, but the currency manipulations can happen inside of the payment app if necessary, IMHO. |
Hi @adrianba, Compared to the proposal that Jason, Andre, Rouslan, and I were working on [1]:
Finally, your change includes this: "If a payment method identifier appears more than once in the In a separate discussion we are talking about how to manage subclassing of Summary: I am supportive of the change proposal, which I believe addresses
As we concluded in our proposal, I do not think we should do "multiple currencies for same payment method" as that can be handled separately (see [1]). Ian [1] https://github.com/w3c/webpayments/wiki/Support-for-multi-price-and-currency |
-1 to Furthermore, if we're going to start allowing payment instruments to be selected in browser, we will need to consider the ability to select more than one for a particular payment request -- and all the UI and details and complexity that that entails. I think that this should be the domain of Payment Apps, particularly in version 1. Let's get some implementation experience with something simpler before pushing all of the complexity into the user agent. |
@dlongley wrote: "if we're going to start allowing payment instruments to be selected in browser, we will need to consider the ability to select more than one for a particular payment request -- and all the UI and details and complexity that that entails. I think that this should be the domain of Payment Apps, particularly in version 1." Strong -1 to requirement that browsers or payment apps handle multi-tender payments in v1. Furthermore, payment apps MAY still do multi-tender payments if they want, and send back the relevant data to the merchant. I suggest that if we want to talk more about multi-tender payments, we start a different thread. Ian |
I have come around and agree that EDIT: |
@ianbjacobs, the spec does say that the user agent should update UX based on changes from the update algorithm but I specifically stayed away from describing how an implementation should display the total as payment methods are selected. There are many different ways to do this especially as related to the different ways that payment apps might be implemented. I think it is implicit that a wise implementation would find some way to indicate to the user the different prices per payment method but friendly amendments to make this more explicit welcome. On the topic of matching payment request identifiers, my position is that we should deal with simple matching in v1, which is what is currently specified. Should a proposal for more complex matching semantics be adopted in the group then any requirements dealing with matching payment methods would need amending. Such a proposal would need to include a comprehensive solution to this issue. |
@adrianba wrote: "Should a proposal for more complex matching semantics be adopted in the group then any requirements dealing with matching payment methods would need amending. Such a proposal would need to include a comprehensive solution to this issue." We (AHB, MattS, and I) took an action to look into grouping/subclassing based on 26 May discussion. I would like to have a proposal by FTF meeting time. If that proposal does not get traction, I have no problem keeping simple matching semantics in v1. |
This is a proposal for issue #4: Should it be possible to vary amounts depending on payment method.
The goal of this change is to make it simple for web developers in the majority case
when price does not vary by payment method. If a developer wishes to have a different
price for specific payment methods then they include a PaymentDetailsModifier that
includes the new total amount and optionally additional display items that are appended
to the main payment details display items for display. This allows the developer to
explain why the price is different due to a discount or surcharge, for example.