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

Pass along a Transaction ID #47

Closed
halindrome opened this issue Sep 23, 2016 · 7 comments
Closed

Pass along a Transaction ID #47

halindrome opened this issue Sep 23, 2016 · 7 comments

Comments

@halindrome
Copy link
Contributor

I believe that users of Payment Apps would benefit from their App(s) being able to know more about each transaction that is processed. One way to facilitate this is to include a transaction ID in the PaymentAppRequestData item.

I would be happy to provide a PR if the group is open to this suggestion.

Note: This assumes that the group agrees with my suggestion in w3c/payment-request#287 that a transaction ID can be supplied by the merchant in the first place.

@ianbjacobs
Copy link
Contributor

Hi Shane,

I believe that the current specification handles this proposal as follows:

  • If the data would become part of the "top-level" data it would get passed along as being specific to the transaction.
  • If the data would become part of the method specific data, it would be passed along in that data.

So I don't think additional changes are required to this specification.

Ian

@adrianhopebailie
Copy link
Contributor

@ianbjacobs - in this case:

If the data would become part of the "top-level" data it would get passed along as being specific to the transaction.

The addition of the member to the "top-level" implies adding it to the PaymentRequestData dictionary [1]

[1] - https://w3c.github.io/webpayments-payment-apps-api/#sec-app-request-data

@rsolomakhin
Copy link
Collaborator

I prefer making this payment method specific.

@adrianhopebailie
Copy link
Contributor

See w3c/payment-request#287

@halindrome
Copy link
Contributor Author

@adrianhopebailie yes, the PaymentRequestData dictionary. Thanks.

@ianbjacobs
Copy link
Contributor

The current state of WG discussion about transaction ID suggests there will be a transaction ID. If the transaction ID is provided by the merchant, then it will be included in the payment method-specific data already required by the spec (so no changes required). if the transaction is generated by the user agent, then the spec will need to be updated so that the UA passes it to the app.

@ianbjacobs
Copy link
Contributor

I am going to close this issue because I believe it is being dealt with in the main WG discussion:
w3c/payment-request#224 (comment)

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

No branches or pull requests

4 participants