-
Notifications
You must be signed in to change notification settings - Fork 292
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
fetchPaymentMethodNonces in BTAPIClient return wrong nonce types #1099
Comments
Hello @haojin2020 - Thanks so much for reporting this issue! I was able to reproduce the behavior you are seeing and this is certainly a bug introduced in v6. I've opened PR #1100 to resolve this issue on our side. Please feel free to pull down that branch to ensure things are working as expected now on your side. |
🤔 we may actually have to get creative with our solution since the load method does not exist in Swift. Right now some of the types work as expected but for example the credit card types aren't passed through as expected. We will dig into this a bit more and come up with a solution that can work in the same way it did in Obj-C. Thanks again for bringing this to our attention. |
Hey @haojin2020 - The fix for this has been released in version 6.7.0. |
Braintree SDK Version
6.6.0
Environment
Sandbox
Xcode Version
Xcode 14.3.1
OS Version & Device
iOS 16.4
Integration type
CocoaPods
Development Processor
Intel
Describe the bug
The fetchPaymentMethodNonces method in BTAPIClient always returns the nonce in the "Unknown" type.
Root cause: After the SDK migrated to Swift. The jsonParsingBlocks in BTPaymentMethodNonceParser is not get registered with different types.
To reproduce
Expected behavior
Screenshots
The text was updated successfully, but these errors were encountered: