rampkit-expo-dev 0.0.62 → 0.0.63
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/EventManager.js +4 -0
- package/package.json +1 -1
package/build/EventManager.js
CHANGED
|
@@ -320,6 +320,7 @@ class EventManager {
|
|
|
320
320
|
trackPurchaseStarted(properties) {
|
|
321
321
|
// Context (paywallId, placement) is automatically included from current state
|
|
322
322
|
// which was set when trackPaywallShown was called
|
|
323
|
+
console.log(`[RampKit] EventManager: 🛒 purchase_started`, `\n productId: ${properties.productId}`, properties.amount ? `\n amount: ${properties.amount} ${properties.currency || ""}` : "");
|
|
323
324
|
this.track("purchase_started", properties);
|
|
324
325
|
}
|
|
325
326
|
/**
|
|
@@ -329,18 +330,21 @@ class EventManager {
|
|
|
329
330
|
*/
|
|
330
331
|
trackPurchaseCompleted(properties) {
|
|
331
332
|
// Context is automatically included from current state (paywallId, placement, etc.)
|
|
333
|
+
console.log(`[RampKit] EventManager: ✅ purchase_completed`, `\n productId: ${properties.productId}`, `\n transactionId: ${properties.transactionId}`, `\n originalTransactionId: ${properties.originalTransactionId}`, properties.isTrial ? `\n isTrial: true` : "", properties.environment ? `\n environment: ${properties.environment}` : "");
|
|
332
334
|
this.track("purchase_completed", properties);
|
|
333
335
|
}
|
|
334
336
|
/**
|
|
335
337
|
* Track purchase failed
|
|
336
338
|
*/
|
|
337
339
|
trackPurchaseFailed(productId, errorCode, errorMessage) {
|
|
340
|
+
console.log(`[RampKit] EventManager: ❌ purchase_failed`, `\n productId: ${productId}`, `\n errorCode: ${errorCode}`, `\n errorMessage: ${errorMessage}`);
|
|
338
341
|
this.track("purchase_failed", { productId, errorCode, errorMessage });
|
|
339
342
|
}
|
|
340
343
|
/**
|
|
341
344
|
* Track purchase restored
|
|
342
345
|
*/
|
|
343
346
|
trackPurchaseRestored(properties) {
|
|
347
|
+
console.log(`[RampKit] EventManager: 🔄 purchase_restored`, `\n productId: ${properties.productId}`, properties.transactionId ? `\n transactionId: ${properties.transactionId}` : "", properties.originalTransactionId ? `\n originalTransactionId: ${properties.originalTransactionId}` : "");
|
|
344
348
|
this.track("purchase_restored", properties);
|
|
345
349
|
}
|
|
346
350
|
/**
|
package/package.json
CHANGED