KEMBAR78
Do .data IDL conversion in constructor by marcoscaceres · Pull Request #829 · w3c/payment-request · GitHub
Skip to content

Conversation

marcoscaceres
Copy link
Member

@marcoscaceres marcoscaceres commented Jan 29, 2019

Closes #813

Converts PaymentMethodData.data to IDL type or object.

The following tasks have been completed:

Implementation commitment:

  • Safari - Implemented
  • Chrome - Implemented
  • Firefox - Implemented
  • Edge (public signal)

Optional, Impact on Payment Handler spec?


Preview | Diff

@marcoscaceres marcoscaceres requested a review from domenic January 29, 2019 01:47
@domenic
Copy link
Collaborator

domenic commented Jan 30, 2019

As I mentioned in the previous PR, this seems incorrect, because it mismatches the JSON serialization. You should instead re-parse the JSON string into an object, and only then do conversion.

@marcoscaceres
Copy link
Member Author

As I mentioned in the previous PR, this seems incorrect, because it mismatches the JSON serialization. You should instead re-parse the JSON string into an object, and only then do conversion.

Sorry, you are right. Hopefully good now.

@marcoscaceres marcoscaceres merged commit 0bc0baa into gh-pages Feb 2, 2019
@marcoscaceres marcoscaceres deleted the construct_convert branch May 16, 2019 06:40
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

Successfully merging this pull request may close these issues.

Should PaymentMethodData be converted at construction time?

2 participants