Purchases API
What Are RunBucks?
Quick Start
import RundotGameAPI from '@series-inc/rundot-game-sdk/api'
// Check player's RunBucks balance
const balance = await RundotGameAPI.iap.getHardCurrencyBalance()
console.log(`Player has ${balance} RunBucks`)
// Spend RunBucks on an item
const purchase = await RundotGameAPI.iap.spendCurrency('bundle_sword', 1)
if (purchase.success) {
unlockItem('bundle_sword')
}Storefront Helpers
Complete Purchase Flow
Subscription Paywall with Checkout Flow
API Reference
Method
Returns
Description
Best Practices
Last updated