React-native-iap: Implement canMakePayments for iOS

Created on 12 Apr 2018  路  2Comments  路  Source: dooboolab/react-native-iap

Hello.

According to Apple guidline https://developer.apple.com/library/content/documentation/NetworkingInternet/Conceptual/StoreKitGuide/Chapters/ShowUI.html

Display a store only if the user can make payments. To determine whether the user can make payments, call the canMakePayments class method of the SKPaymentQueue class. If the user can鈥檛 make payments (for example, because of parental restrictions), either display UI indicating that that the store isn鈥檛 available or omit the store portion of your UI entirely.

It would be really nice to have canMakePayments(https://developer.apple.com/documentation/storekit/skpaymentqueue/1506139-canmakepayments?language=objc) exposed to JS.

Thanks.

馃崡 enhancement 馃摫 iOS

Most helpful comment

OK. We will implement the function soon.

All 2 comments

OK. We will implement the function soon.

@vshab This is released in [email protected]. Sorry for late update. JJMoon hasn't been working on this one! Please reopen when there is an issue. This will be called in prepare method in our module.

Was this page helpful?
0 / 5 - 0 ratings