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

Do .data IDL conversion in constructor #829

Merged
merged 2 commits into from
Feb 2, 2019
Merged

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

@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