Skip to content

Commit

Permalink
promo js session id added
Browse files Browse the repository at this point in the history
  • Loading branch information
nandadubey committed Aug 17, 2018
1 parent e940564 commit b10242c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions extension/skin/frontend/base/default/js/affirm/promos.js
Expand Up @@ -76,10 +76,12 @@ var AFFIRM_AFFIRM = AFFIRM_AFFIRM || {};
* @param {String} affirmJsUrl
* @returns {AFFIRM_AFFIRM.promos}
*/
initialize: function(apiKey, affirmJsUrl) {
initialize: function(apiKey, affirmJsUrl, sessionId) {
sessionId = (typeof sessionId !== 'undefined') ? sessionId : 'null';
this.config = {
public_api_key: apiKey,
script: affirmJsUrl
script: affirmJsUrl,
session_id: sessionId
};
this.setIsInitialized(true);

Expand Down

0 comments on commit b10242c

Please sign in to comment.