You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PKPaymentAuthorizationViewController:paymentRequest returns nil when currencyCode is "usd" but works correctly for "USD". However, the documentation at https://stripe.com/docs/mobile/ios/custom#apple-pay specifies "usd".
The lowercase "usd" has worked in the past... Does the documentation need to be updated?
Code to reproduce
let paymentRequest = Stripe.paymentRequest(withMerchantIdentifier: merchantIdentifier, country: "US", currency: "usd") ... let paymentAuthorizationViewController = PKPaymentAuthorizationViewController(paymentRequest: paymentRequest)
iOS version
11.0.1
Installation method
Cocoapods
SDK version
11.4.0
Other information
Noticed after updating from Stripe 10.*
The text was updated successfully, but these errors were encountered:
Hmm, possibly Apple's implementation of PKPaymentRequest or PKPaymentAuthorizationViewController has silently changed in iOS11 to require capitalized currency codes. Thanks for flagging we'll investigate either updating our docs or auto-capitalizing the strings for you.
Summary
PKPaymentAuthorizationViewController:paymentRequest returns nil when currencyCode is "usd" but works correctly for "USD". However, the documentation at https://stripe.com/docs/mobile/ios/custom#apple-pay specifies "usd".
The lowercase "usd" has worked in the past... Does the documentation need to be updated?
Code to reproduce
let paymentRequest = Stripe.paymentRequest(withMerchantIdentifier: merchantIdentifier, country: "US", currency: "usd")
...
let paymentAuthorizationViewController = PKPaymentAuthorizationViewController(paymentRequest: paymentRequest)
iOS version
11.0.1
Installation method
Cocoapods
SDK version
11.4.0
Other information
Noticed after updating from Stripe 10.*
The text was updated successfully, but these errors were encountered: