dooboolab-community / react-native-iap

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

How to use developerPayload in react-native-iap #2576

Open Rini0404 opened 9 months ago

Rini0404 commented 9 months ago

Discussed in https://github.com/dooboolab-community/react-native-iap/discussions/2401

Originally posted by **majaeseong** April 6, 2023 I'm trying to provide a Google subscription service using the `react-native-iap` API. I'm trying to enter data into the `developerPayload` value to split the service. ```javascript const result = await requestSubscription( sku, false, offerToken, developerPayload, ); ``` ChatGPT told me to use it as above. However, there is no function in their API that takes the arguments as listed. How can I use it? API version : `12.10.2` Thank you for read my question :)
Rini0404 commented 9 months ago

How do you use developerPayload? In your documentation, there is no real example with context on how to use this. https://react-native-iap.dooboolab.com/docs/api-reference/methods/android/acknowledge-purchase-android this is the closest thing I found, I believe it does not even work for subscriptions.