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

Add business_type param to Account tokenization when available #945

Merged
merged 1 commit into from
May 15, 2019

Conversation

mshafrir-stripe
Copy link
Collaborator

Summary

If BusinessType is populated in AccountParams, include it with the business_type param.

Motivation

Fixes #943

Testing

Wrote unit tests

If `BusinessType` is populated in `AccountParams`, include
it with the `business_type` param.

Fixes #943
removeNullAndEmptyParams(stringObjectMap);
final Map<String, Object> stringObjectMap =
(Map<String, Object>) mapToEdit.get(key);
if (stringObjectMap != null) {
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't think this null check is necessary since we know mapToEdit.get(key) is an instance of Map (not null).

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I'm going to clean up this method in a follow-up PR

@mshafrir-stripe mshafrir-stripe merged commit 337e56f into master May 15, 2019
@mshafrir-stripe mshafrir-stripe deleted the fix-account-params branch May 15, 2019 01:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Account tokens are missing the business_type parameter
4 participants