diff --git a/lib/recurly/risk/three-d-secure/strategy/cybersource.js b/lib/recurly/risk/three-d-secure/strategy/cybersource.js index eaad4839..7c313a20 100644 --- a/lib/recurly/risk/three-d-secure/strategy/cybersource.js +++ b/lib/recurly/risk/three-d-secure/strategy/cybersource.js @@ -44,7 +44,7 @@ export default class CybersourceStrategy extends ThreeDSecureStrategy { const body = JSON.parse(data); if (body.MessageType === 'profile.completed') { debug('received device data session id', body); - resolve({ results: { session_id: body.SessionId }}); + resolve({ results: { session_id: body.SessionId } }); frame.destroy(); recurly.bus.off('raw-message', listener); } diff --git a/lib/recurly/risk/three-d-secure/strategy/worldpay.js b/lib/recurly/risk/three-d-secure/strategy/worldpay.js index 52d1fbc6..3d16e1ea 100644 --- a/lib/recurly/risk/three-d-secure/strategy/worldpay.js +++ b/lib/recurly/risk/three-d-secure/strategy/worldpay.js @@ -44,7 +44,7 @@ export default class WorldpayStrategy extends ThreeDSecureStrategy { const body = JSON.parse(data); if (body.MessageType === 'profile.completed') { debug('received device data session id', body); - resolve({ results: { session_id: body.SessionId }}); + resolve({ results: { session_id: body.SessionId } }); recurly.bus.off('raw-message', listener); frame.destroy(); } diff --git a/lib/recurly/risk/three-d-secure/three-d-secure.js b/lib/recurly/risk/three-d-secure/three-d-secure.js index ba3efd48..07019870 100644 --- a/lib/recurly/risk/three-d-secure/three-d-secure.js +++ b/lib/recurly/risk/three-d-secure/three-d-secure.js @@ -121,10 +121,10 @@ export class ThreeDSecure extends RiskConcern { gateway_code, results }) - } + }; }); }); - }, Promise.resolve({risk: []})); + }, Promise.resolve({ risk: [] })); } constructor ({ risk, actionTokenId, challengeWindowSize }) { diff --git a/lib/recurly/token.js b/lib/recurly/token.js index e6959c88..6357c60b 100644 --- a/lib/recurly/token.js +++ b/lib/recurly/token.js @@ -175,8 +175,8 @@ function token (customerData, bus, done) { const { number, month, year, cvv } = inputs; Risk.preflight({ recurly: this, number, month, year, cvv }) .then(({ risk, tokenType }) => { - inputs.risk = risk - if (tokenType) inputs.type = tokenType + inputs.risk = risk; + if (tokenType) inputs.type = tokenType; }) .then(() => this.request.post({ route: '/token', data: inputs, done: complete })) .done();