getPurchaseId method
Returns purchaseId, collectionId, and azureToken (OAuth token for One Store).
Pass config to provide Azure AD / One Store OAuth credentials.
clientId, clientSecret, and tenantId must be set in config.
resource and collectionsResource fall back to defaults when omitted.
Implementation
Future<Map<String, String>> getPurchaseId(
String userId, {
OneStoreConfig? config,
}) {
return FlutterWindowsIapPlatform.instance.getPurchaseId(
userId,
config: config,
);
}