Skip to content

Commit

Permalink
feat(payments): INT-1650 adding properties to vaulting object
Browse files Browse the repository at this point in the history
  • Loading branch information
Estefania Ocampo authored and Estefania Ocampo committed Jul 15, 2019
1 parent 34002fc commit 595fc00
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/payment/v1/payment-mappers/payment-mapper.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ export default class PaymentMapper {
credit_card_number_confirmation: payment.ccNumber,
token: payment.instrumentId,
verification_value: payment.ccCvv,
three_d_secure: payment.threeDSecure,
});
}

Expand Down
2 changes: 2 additions & 0 deletions test/payment/v1/payment-mappers/payment-mapper.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@ describe('PaymentMapper', () => {
shouldSaveInstrument: true,
instrumentId: 'token1',
ccCvv: '123',
three_d_secure: { token: 'aaa.bbb.ccc' },
},
});

Expand All @@ -167,6 +168,7 @@ describe('PaymentMapper', () => {
token: data.payment.instrumentId,
verification_value: data.payment.ccCvv,
credit_card_number_confirmation: data.payment.ccNumber,
three_d_secure: data.payment.three_d_secure,
},
})
);
Expand Down

0 comments on commit 595fc00

Please sign in to comment.