diff --git a/packages/google-pay-integration/src/gateways/google-pay-gateway.spec.ts b/packages/google-pay-integration/src/gateways/google-pay-gateway.spec.ts index 160a7bbd33..8e3a68c146 100644 --- a/packages/google-pay-integration/src/gateways/google-pay-gateway.spec.ts +++ b/packages/google-pay-integration/src/gateways/google-pay-gateway.spec.ts @@ -102,6 +102,7 @@ describe('GooglePayGateway', () => { describe('#getTransactionInfo', () => { it('should return ESTIMATED transaction info', async () => { const expectedInfo = { + countryCode: 'US', currencyCode: 'USD', totalPriceStatus: 'ESTIMATED', totalPrice: '0', @@ -115,6 +116,7 @@ describe('GooglePayGateway', () => { it('should return transaction info (Buy Now Flow)', async () => { const expectedInfo = { + countryCode: 'US', currencyCode: 'USD', totalPriceStatus: 'ESTIMATED', totalPrice: '0', diff --git a/packages/google-pay-integration/src/gateways/google-pay-gateway.ts b/packages/google-pay-integration/src/gateways/google-pay-gateway.ts index 4cfded3991..1481c80fcb 100644 --- a/packages/google-pay-integration/src/gateways/google-pay-gateway.ts +++ b/packages/google-pay-integration/src/gateways/google-pay-gateway.ts @@ -158,7 +158,10 @@ export default class GooglePayGateway { currencyCode = getCartOrThrow().currency.code; } + const countryCode = this.getGooglePayInitializationData().storeCountry; + return { + ...(countryCode && { countryCode }), currencyCode, totalPriceStatus: TotalPriceStatusType.ESTIMATED, totalPrice: '0', diff --git a/packages/google-pay-integration/src/google-pay-payment-processor.spec.ts b/packages/google-pay-integration/src/google-pay-payment-processor.spec.ts index 7dc9013c19..b787c8bf77 100644 --- a/packages/google-pay-integration/src/google-pay-payment-processor.spec.ts +++ b/packages/google-pay-integration/src/google-pay-payment-processor.spec.ts @@ -141,6 +141,7 @@ describe('GooglePayPaymentProcessor', () => { merchantName: 'Example Merchant', }, transactionInfo: { + countryCode: 'US', currencyCode: 'USD', totalPrice: '0', totalPriceStatus: 'ESTIMATED', @@ -313,6 +314,7 @@ describe('GooglePayPaymentProcessor', () => { merchantName: 'Example Merchant', }, transactionInfo: { + countryCode: 'US', currencyCode: 'USD', totalPrice: '0', totalPriceStatus: 'ESTIMATED',