insert-affiliate-react-native-sdk 1.4.5 → 1.4.7

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/readme.md +3 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "insert-affiliate-react-native-sdk",
3
- "version": "1.4.5",
3
+ "version": "1.4.7",
4
4
  "description": "A package for connecting with the Insert Affiliate Platform to add app based affiliate marketing.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/readme.md CHANGED
@@ -98,7 +98,7 @@ React.useEffect(() => {
98
98
  const affiliateIdentifier = await returnInsertAffiliateIdentifier();
99
99
 
100
100
  if (affiliateIdentifier) {
101
- await Purchases.setAttributes({"insert_affiliate", affiliateIdentifier});
101
+ await Purchases.setAttributes({"insert_affiliate" : affiliateIdentifier});
102
102
  }
103
103
  }
104
104
  } catch (error) {
@@ -118,6 +118,7 @@ React.useEffect(() => {
118
118
  2. Configure the webhook with these settings:
119
119
  - Webhook URL: `https://api.insertaffiliate.com/v1/api/revenuecat-webhook`
120
120
  - Authorization header: Use the value from your Insert Affiliate dashboard (you'll get this in step 4)
121
+ - Set "Event Type" to "All events"
121
122
 
122
123
  3. In your [Insert Affiliate dashboard settings](https://app.insertaffiliate.com/settings):
123
124
  - Navigate to the verification settings
@@ -339,7 +340,7 @@ import { useDeepLinkIapProvider } from 'insert-affiliate-react-native-sdk';
339
340
  let insertAffiliateIdentifier = await setInsertAffiliateIdentifier(referringLink);
340
341
 
341
342
  if (insertAffiliateIdentifier) {
342
- await Purchases.setAttributes({"insert_affiliate", affiliateIdentifier});
343
+ await Purchases.setAttributes({"insert_affiliate" : affiliateIdentifier});
343
344
  }
344
345
 
345
346
  } catch (err) {