apps-sdk 1.0.62 → 1.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "apps-sdk",
3
- "version": "1.0.62",
3
+ "version": "1.0.63",
4
4
  "description": "Apps SDK",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -86,6 +86,11 @@ class PayWall extends React.Component {
86
86
  this.props.onClose();
87
87
  }
88
88
 
89
+ eventClickAcceptTerms = (data) => {
90
+ Networking.sendEvent('action', 'accept_terms');
91
+ this.props.acceptTerms();
92
+ }
93
+
89
94
  hideSpinner = () => {
90
95
  const event = {
91
96
  event: 'hideLoader',
@@ -144,7 +144,7 @@ class Networking {
144
144
  }
145
145
 
146
146
  checkSubscription = async () => {
147
- let subsID = await storage.getData('userID');
147
+ let subsID = await storage.getData('subscriptionID');
148
148
  let subStatus = await this.request(config.ENDPOINTS.SUB_STATUS, {...Session.sessionData, subs_id: subsID});
149
149
  console.log('checkSubscription', subStatus);
150
150
  if (subStatus && subStatus.success === 1) {