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

Capitalize currency and country codes automatically #829

Merged
merged 1 commit into from
Nov 6, 2017

Conversation

bdorfman-stripe
Copy link
Contributor

Payment context already force-capitalizes the currency code before attempting to create a PKPaymentAuthorizationViewController but this other helper method does not. iOS now returns nil for PKPaymentAuthorizationViewController if the request you create it with has a lowercase currency code so capitalize it automatically for people.

Fixes #828 (will also update our examples in docs to have "USD" instead so that we are showing the correct thing, even though we will auto fix it for people).

Payment context already force-capitalizes the currency code before attempting to create a PKPaymentAuthorizationViewController but this other helper method does not. iOS now returns nil for PKPaymentAuthorizationViewController if the request you create it with has a lowercase currency code so capitalize it automatically for people.
Copy link
Contributor

@bg-stripe bg-stripe left a comment

Choose a reason for hiding this comment

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

👍

@bdorfman-stripe bdorfman-stripe merged commit bffcc33 into master Nov 6, 2017
@bdorfman-stripe bdorfman-stripe deleted the bdorfman-capitalize-currency-codes branch November 6, 2017 17:37
davidme-stripe pushed a commit that referenced this pull request Mar 7, 2022
Regenerated API models using swagger codegen.

* Removes welcome screen
* Adds timeEstimate and privacyPolicy to consent screen model
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.

Apple Pay currency code documentation
3 participants