Skip to content

Commit

Permalink
feat(payment): PAYMENTS-2675 Add CCNo. as part of the vaulting payment
Browse files Browse the repository at this point in the history
payload
  • Loading branch information
danieldelcore committed May 25, 2018
1 parent fd527d6 commit c6d708c
Show file tree
Hide file tree
Showing 2 changed files with 2 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 @@ -110,6 +110,7 @@ export default class PaymentMapper {
*/
mapToBigPayToken({ payment }) {
return omitNil({
credit_card_number_confirmation: payment.ccNumber,
token: payment.instrumentId,
verification_value: payment.ccCvv,
});
Expand Down
1 change: 1 addition & 0 deletions test/payment/v1/payment-mappers/payment-mapper.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,7 @@ describe('PaymentMapper', () => {
bigpay_token: {
token: data.payment.instrumentId,
verification_value: data.payment.ccCvv,
credit_card_number_confirmation: data.payment.ccNumber,
},
})
);
Expand Down

0 comments on commit c6d708c

Please sign in to comment.