dooboolab-community / react-native-iap

In App Purchase module for React Native!
https://react-native-iap.dooboolab.com
MIT License
2.78k stars 634 forks source link

requestPurchase promise doesn't return `Product` for storekit2 #2107

Closed charleschen closed 1 year ago

charleschen commented 1 year ago

Description After a successful call for requestPurchase with storekitmode on STOREKIT2_MODE, the value returned to the success promise callback is not the interface for Product. From looking at the swift code (https://github.com/dooboolab/react-native-iap/blob/main/ios/RNIapIosSk2.swift#L695) it looks like the code is serializing a transaction, where as storekit1 (https://github.com/discord/react-native-iap/blob/main/ios/RNIapIos.swift#L537) changes the transaction into Product interface.

Expected Behavior

requestPurchase promise should return the same interface for storekit1 and storekit2 mode.

Screenshots

Environment:

andresesfm commented 1 year ago

Fix here: https://github.com/dooboolab/react-native-iap/pull/2141

andresesfm commented 1 year ago

Released on 12.4.8

charleschen commented 1 year ago

thanks!