Skip to content

Commit

Permalink
feat(payments): INT-4970 map browser_info for cc and vaultedInstrumen…
Browse files Browse the repository at this point in the history
…t for Opayo
  • Loading branch information
Jose Alvarez committed Feb 28, 2022
1 parent 7676a3a commit bc78e8e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/payment/v1/payment-mappers/payment-mapper.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,11 +74,16 @@ export default class PaymentMapper {
});
} else {
objectAssign(payload, {
browser_info: payment.browser_info,
credit_card: this.mapToCreditCard(data),
});
}

if (payment.browser_info) {
objectAssign(payload, {
browser_info: payment.browser_info,
});
}

return omitNil(payload);
}

Expand Down

0 comments on commit bc78e8e

Please sign in to comment.