apps-sdk 1.0.159 → 1.0.161
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/package.json
CHANGED
|
@@ -127,7 +127,7 @@ class PayWallLogic {
|
|
|
127
127
|
...(offerToken && {subscriptionOffers: [{sku, offerToken}]}),
|
|
128
128
|
});
|
|
129
129
|
subscribed = true;
|
|
130
|
-
Session.setIsSubscribed(true);
|
|
130
|
+
await Session.setIsSubscribed(true);
|
|
131
131
|
if (hidePayWallCallback) {
|
|
132
132
|
hidePayWallCallback();
|
|
133
133
|
}
|
|
@@ -185,14 +185,14 @@ class PayWallLogic {
|
|
|
185
185
|
let subscriptionsData = {};
|
|
186
186
|
try {
|
|
187
187
|
const subscriptionTemplates = await getSubscriptions({skus: productIDs});
|
|
188
|
-
Networking.sendEvent('other', 'DEBUG_PAYMENT_subscriptionTemplates', subscriptionTemplates);
|
|
188
|
+
Networking.sendEvent('other', 'DEBUG_PAYMENT_subscriptionTemplates', {'subscriptionTemplates': subscriptionTemplates});
|
|
189
189
|
if (subscriptionTemplates.length > 0) {
|
|
190
190
|
subscriptionTemplates.forEach(product => {
|
|
191
191
|
subscriptionsData[product.productId] = product;
|
|
192
192
|
});
|
|
193
193
|
config.PAYWALL_DATA.products_metadata = subscriptionsData;
|
|
194
194
|
config.DEBUG_MODE && console.debug('products_metadata', config.PAYWALL_DATA.products_metadata);
|
|
195
|
-
Networking.sendEvent('other', 'DEBUG_PAYMENT_products_metadata', config.PAYWALL_DATA.products_metadata);
|
|
195
|
+
Networking.sendEvent('other', 'DEBUG_PAYMENT_products_metadata', {'products_metadata': config.PAYWALL_DATA.products_metadata});
|
|
196
196
|
}
|
|
197
197
|
} catch (err) {
|
|
198
198
|
console.log('err_code', err.code, 'err_message', err.message);
|
|
@@ -345,7 +345,7 @@ class PayWallLogic {
|
|
|
345
345
|
config.PAYWALL_DATA.paywall_info = payWallInfo;
|
|
346
346
|
if (config.DEBUG_MODE) {
|
|
347
347
|
console.debug('paywall_info', config.PAYWALL_DATA.paywall_info);
|
|
348
|
-
Networking.sendEvent('other', 'DEBUG_PAYMENT_payment_prices_info_prepared', config.PAYWALL_DATA.paywall_info);
|
|
348
|
+
Networking.sendEvent('other', 'DEBUG_PAYMENT_payment_prices_info_prepared', {'paywall_info': config.PAYWALL_DATA.paywall_info});
|
|
349
349
|
}
|
|
350
350
|
}
|
|
351
351
|
return payWallInfo;
|
|
@@ -354,7 +354,7 @@ class PayWallLogic {
|
|
|
354
354
|
|
|
355
355
|
|
|
356
356
|
getProductIDs = () => {
|
|
357
|
-
Networking.sendEvent('other', 'DEBUG_PAYMENT_getProductIDs', config.PAYWALL_DATA.products);
|
|
357
|
+
Networking.sendEvent('other', 'DEBUG_PAYMENT_getProductIDs', {'products': config.PAYWALL_DATA.products});
|
|
358
358
|
return config.PAYWALL_DATA.products;
|
|
359
359
|
}
|
|
360
360
|
|