Merge pull request #2258 from overleaf/ta-recurly-custom-fields

Recurly Custom Fields Tracking

GitOrigin-RevId: f29f56cf7d0dfa91a8f4152897ba6bd897cb6238
This commit is contained in:
Timothée Alby
2019-10-25 08:38:57 +00:00
committed by sharelatex
parent 61243338be
commit 4d564d5cf1
6 changed files with 72 additions and 5 deletions
@@ -649,7 +649,9 @@ describe('RecurlyWrapper', function() {
country: 'some_country',
state: 'some_state',
zip: 'some_zip'
}
},
ITMCampaign: 'itm-campaign-value',
ITMContent: 'itm-content-value'
}
this.subscription = {}
this.recurlyTokenIds = {
@@ -698,6 +700,16 @@ describe('RecurlyWrapper', function() {
<three_d_secure_action_result_token_id>a-3d-token-id</three_d_secure_action_result_token_id>
</billing_info>
</account>
<custom_fields>
<custom_field>
<name>itm_campaign</name>
<value>itm-campaign-value</value>
</custom_field>
<custom_field>
<name>itm_content</name>
<value>itm-content-value</value>
</custom_field>
</custom_fields>
</subscription>\
`)
return done()
@@ -1000,7 +1012,9 @@ describe('RecurlyWrapper', function() {
country: 'some_country',
state: 'some_state',
zip: 'some_zip'
}
},
ITMCampaign: 'itm-campaign-value',
ITMContent: 'itm-content-value'
})
})
})
@@ -1505,6 +1519,16 @@ describe('RecurlyWrapper', function() {
<account>
<account_code>some_id</account_code>
</account>
<custom_fields>
<custom_field>
<name>itm_campaign</name>
<value>itm-campaign-value</value>
</custom_field>
<custom_field>
<name>itm_content</name>
<value>itm-content-value</value>
</custom_field>
</custom_fields>
</subscription>\
`)
return done()