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
Fetching virtual currency balances is supported in the following SDK versions:
106
107
107
-
| SDK | Supported Versions |
108
-
| ---------------- | ------------------ |
109
-
| iOS SDK | 5.32.0+ |
110
-
| Android SDK | 9.1.0+ |
111
-
| React Native SDK | 9.1.0+ |
112
-
| Flutter SDK | 9.1.0+ |
113
-
| Capacitor SDK | 11.1.0+ |
114
-
| Unity SDK | 8.1.0+ |
108
+
| SDK | Supported Versions |
109
+
| ---------------- | -------------------------- |
110
+
| iOS SDK | 5.32.0+ |
111
+
| Android SDK | 9.1.0+ |
112
+
| React Native SDK | 9.1.0+ |
113
+
| Flutter SDK | 9.1.0+ |
114
+
| Capacitor SDK | 11.1.0+ |
115
+
| Unity SDK | 8.1.0+ |
116
+
| KMP SDK | 2.1.0+16.2.0+ |
115
117
116
118
You can use the `virtualCurrencies()` function to retrieve a customer's balance. The function returns a `VirtualCurrencies` object, which includes the customer's balances along with each virtual currency's metadata.
117
119
@@ -152,6 +154,11 @@ You can use the `virtualCurrencies()` function to retrieve a customer's balance.
152
154
content: fetchVCBalancesUnity,
153
155
name: "Unity"
154
156
},
157
+
{
158
+
type: "kotlin",
159
+
title: "Kotlin Multiplatform",
160
+
content: fetchVCBalancesKMP,
161
+
},
155
162
]}
156
163
/>
157
164
@@ -175,10 +182,6 @@ import cachedVirtualCurrenciesSwift from "@site/code_blocks/virtual-currency/cac
175
182
]}
176
183
/>
177
184
178
-
##### Hybrid SDK Support
179
-
180
-
Virtual currency support in the hybrid SDKs is coming soon!
181
-
182
185
### Depositing or spending
183
186
184
187
You can deposit or spend currency by calling the [virtual currency transactions Developer API endpoint](https://www.revenuecat.com/docs/api-v2#tag/Customer/operation/create-virtual-currencies-transaction) from the backend of your app:
0 commit comments