diff --git a/src/__tests__/ApplePay.test.tsx b/src/__tests__/ApplePay.test.tsx index a652ba2..0b7f3d0 100644 --- a/src/__tests__/ApplePay.test.tsx +++ b/src/__tests__/ApplePay.test.tsx @@ -165,6 +165,7 @@ describe('ApplePay (native mode)', () => { token: 'bolt_tok_abc', bin: '411111', expiration: '2027-12', + network: 'visa', billingContact: rawNativeResponse.billingContact, }); expect(onError).not.toHaveBeenCalled(); diff --git a/src/__tests__/GoogleWallet.test.tsx b/src/__tests__/GoogleWallet.test.tsx index 9f89341..466439f 100644 --- a/src/__tests__/GoogleWallet.test.tsx +++ b/src/__tests__/GoogleWallet.test.tsx @@ -187,6 +187,7 @@ describe('GoogleWallet', () => { bin: '411111', expiration: '2027-12', last4: '1234', + network: 'visa', email: 'jane@example.com', billingAddress: rawNativeResponse.billingAddress, }); diff --git a/src/payments/ApplePay.tsx b/src/payments/ApplePay.tsx index ef3ee15..5df15a3 100644 --- a/src/payments/ApplePay.tsx +++ b/src/payments/ApplePay.tsx @@ -173,6 +173,7 @@ const ApplePayNative = ({ token: tokenResult.token, bin: tokenResult.bin, expiration: tokenResult.expiry, + network: tokenResult.network, billingContact: raw.billingContact, }; success = true; diff --git a/src/payments/GoogleWallet.tsx b/src/payments/GoogleWallet.tsx index 61ba058..f75d3b7 100644 --- a/src/payments/GoogleWallet.tsx +++ b/src/payments/GoogleWallet.tsx @@ -141,6 +141,7 @@ export const GoogleWallet = ({ bin: tokenResult.bin, expiration: tokenResult.expiry, last4: tokenResult.last4, + network: tokenResult.network, email: raw.email, billingAddress: raw.billingAddress, }; diff --git a/src/payments/types.ts b/src/payments/types.ts index fe8975a..b5d00ef 100644 --- a/src/payments/types.ts +++ b/src/payments/types.ts @@ -126,6 +126,7 @@ export type GooglePayButtonTheme = 'dark' | 'light'; export interface ApplePayResult { token: string; bin?: string; + network?: string; expiration?: string; billingContact?: ApplePayBillingContact; /** @@ -168,6 +169,7 @@ export interface GooglePayResult { token: string; bin?: string; last4?: string; + network?: string; expiration?: string; email?: string; billingAddress?: GooglePayBillingAddress;