Skip to content

Commit

Permalink
feat(payments): INT-4188 Send tax information on the offsite flow
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergio Rodriguez committed May 7, 2021
1 parent 129dc27 commit fbdda1c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/payment/offsite-payment-mappers/payload-mapper.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ export default class PayloadMapper {
const payload = objectAssign(
{
amount: order.grandTotal ? order.grandTotal.integerAmount : null,
tax: order.taxTotal ? order.taxTotal.integerAmount : null,
bc_auth_token: authToken,
currency: order.currency,
gateway: this.paymentMethodIdMapper.mapToId(paymentMethod),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ describe('PayloadMapper', () => {

expect(output).toEqual({
amount: data.order.grandTotal.integerAmount,
tax: data.order.taxTotal.integerAmount,
bc_auth_token: data.authToken,
billingAddress: 'billingAddress',
currency: data.order.currency,
Expand Down

0 comments on commit fbdda1c

Please sign in to comment.