braintree / braintree_ios

Braintree SDK for iOS
https://developer.paypal.com/braintree/docs/start/hello-client/ios/v5
MIT License
560 stars 294 forks source link

'BTCardCapabilities' is deprecated: The UnionPay SMS integration is deprecated, as UnionPay can now be processed as a credit card through their partnership with Discover. Use `BTCardClient.tokenizeCard(card: completion:)` #915

Closed lurenzhangdeshuai closed 1 year ago

lurenzhangdeshuai commented 1 year ago

Integration Details (please complete the following information):

Describe the bug 'BTCardCapabilities' is deprecated: The UnionPay SMS integration is deprecated, as UnionPay can now be processed as a credit card through their partnership with Discover. Use BTCardClient.tokenizeCard(card: completion:).

Screenshots image

thanks

scannillo commented 1 year ago

Hi @lurenzhangdeshuai - this is an expected warning. If you want to continue using BraintreeUnionPay features until we remove it in V6, you can set "Treat Warnings as Errors" to "NO" in your Xcode project's build settings.

UnionPay cards can be processed through the regular card processing rails (via CardClient.tokenize()) instead of needing to use the BraintreeUnionPay module.

I will close this issue, unless you had a different concern?

scannillo commented 1 year ago

Closing due to inactivity.

lurenzhangdeshuai commented 1 year ago

thanks a lot. I have set "Treat Warnings as Errors" to "NO" in my Xcode project's build settings, but the error does not disappear.