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

PR-4469: support drop in config schema #9

Merged

Conversation

grgmgd
Copy link
Contributor

@grgmgd grgmgd commented Jan 24, 2024

This PR Adds the following:

  1. Support dropIn init config schema
  2. Relax the constraints on card attributes to allow encrypting only the card cvv
  3. Expose card attributes publicaly
  4. Adds testing scenarios for dropIn and tokenization flows

@grgmgd grgmgd requested a review from ngub January 24, 2024 19:33
throw NSError(domain: "ConfigError", code: 0, userInfo: [NSLocalizedDescriptionKey: "Missing Config"])
}

if let tokenization = cseConfig.tokenization {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like this part where the logic is independent of the provider type. One question though - will there ever be a case where we have both?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@kumaraksi Could be, but in that case shouldn't the publicKey be the same?

@grgmgd grgmgd merged commit e879e9b into PR-4406-expose-encryptcard-func Jan 30, 2024
5 checks passed
@grgmgd grgmgd deleted the PR-4469-support-dropIn-config-schema branch January 30, 2024 15:45
grgmgd added a commit that referenced this pull request Jan 31, 2024
* feat: exposed encrypt card function

* refactor: renaming encryptCard to encryptCardData

* PR-4469: support drop in config schema (#9)

* feat: support for dropIn initialization config

* fix: relax vaultConfiguration required fields

* feat: version bump to 0.2.0
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.

3 participants