You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/offerings/virtual-currency.mdx
+2-66Lines changed: 2 additions & 66 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -40,45 +40,6 @@ You can associate as many products as you want with your virtual currency and yo
40
40
41
41
Once your customer purchase the associated products they will get the defined amount of your virtual currency. You can inspect the virtual currency balances of your customer in the right side-panel of the customer page.
42
42
43
-
## SDK Beta Installation
44
-
45
-
SDK support for virtual currencies is currently in beta, and as such requires the usage of a beta build. Please note that the virtual currency APIs in these betas are subject to change without warning in future releases. The beta virtual currency features are currently available in the native iOS and Android SDKs.
46
-
47
-
### iOS
48
-
49
-
Virtual currency functionality is available in the native iOS SDK in versions 5.32.0 and above.
50
-
51
-
### Android
52
-
53
-
Virtual currency functionality is available in the native Android SDK in versions 9.1.0 and above.
54
-
55
-
### React Native
56
-
57
-
When installing the purchases SDK in your app, use the latest virtual currencies beta version:
@@ -177,31 +136,8 @@ import cachedVirtualCurrenciesSwift from "@site/code_blocks/virtual-currency/cac
177
136
]}
178
137
/>
179
138
180
-
##### React Native and Flutter
181
-
182
-
If you're using the virtual currency SDK betas for React Native or Flutter, you can fetch the virtual currency balances from the [CustomerInfo](https://www.revenuecat.com/docs/customers/customer-info) object in the SDK:
183
-
184
-
import fetchVCBalancesReactNative from "@site/code_blocks/virtual-currency/vc-balance-sdk-react-native.ts.txt?raw";
185
-
import fetchVCBalancesFlutter from "@site/code_blocks/virtual-currency/vc-balance-sdk-flutter.dart?raw";
186
-
187
-
<RCCodeBlock
188
-
tabs={[
189
-
{
190
-
type: "rn",
191
-
content: fetchVCBalancesReactNative,
192
-
name: "React Native",
193
-
},
194
-
{
195
-
type: "flutter",
196
-
content: fetchVCBalancesFlutter,
197
-
name: "Flutter",
198
-
},
199
-
]}
200
-
/>
201
-
202
-
:::warning CustomerInfo does not update automatically when balance changes
203
-
When a customer's balance is updated from your backend, the CustomerInfo object remains cached and is not automatically updated. In order to get the updated balance, you need to call `Purchases/invalidateCustomerInfoCache()` and fetch the CustomerInfo object again.
204
-
:::
139
+
##### Hybrid SDK Support
140
+
Virtual currency support in the hybrid SDKs is coming soon!
0 commit comments