Skip to content

Add new /credit_card/country input#97

Merged
shadromani merged 1 commit intomainfrom
greg/cc-country-input
Mar 8, 2022
Merged

Add new /credit_card/country input#97
shadromani merged 1 commit intomainfrom
greg/cc-country-input

Conversation

@oschwald
Copy link
Copy Markdown
Member

@oschwald oschwald commented Mar 7, 2022

No description provided.

@oschwald oschwald force-pushed the greg/cc-country-input branch from 5fd8b7e to 7fa7463 Compare March 7, 2022 21:55
@oschwald oschwald force-pushed the greg/cc-country-input branch from 7fa7463 to 32d44d7 Compare March 7, 2022 21:57
Copy link
Copy Markdown
Contributor

@shadromani shadromani left a comment

Choose a reason for hiding this comment

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

LGTM! One minor suggestion!

"decline_code": "invalid number"
},
"credit_card": {
"country": "US",
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

How about another request that contains country but no issuer ID? I think we need to verify that no exception is thrown in that case.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

We don't throw an exception if they provide both. Also, the change to test_validation.py would test that no exception is thrown when they only provide a valid country.

@shadromani shadromani merged commit 004fb68 into main Mar 8, 2022
@shadromani shadromani deleted the greg/cc-country-input branch March 8, 2022 17:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants