Skip to content

Commit

Permalink
Fix CI?
Browse files Browse the repository at this point in the history
  • Loading branch information
tillh-stripe committed Feb 10, 2025
1 parent 35f09f0 commit f0a1c5d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
4 changes: 2 additions & 2 deletions example/src/screens/ACHPaymentScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {
verifyMicrodepositsForPayment,
VerifyMicrodepositsParams,
collectBankAccountForPayment,
FinancialConnectionsEvent,
FinancialConnections,
} from '@stripe/stripe-react-native';
import Button from '../components/Button';
import PaymentScreen from '../components/PaymentScreen';
Expand Down Expand Up @@ -137,7 +137,7 @@ export default function ACHPaymentScreen() {

setSecret(clientSecret);

const onEvent = (event: FinancialConnectionsEvent) => {
const onEvent = (event: FinancialConnections.FinancialConnectionsEvent) => {
console.log(`Received Financial Connections event: ${event}`);
};

Expand Down
5 changes: 2 additions & 3 deletions src/functions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ import {
NativeModules,
EmitterSubscription,
} from 'react-native';
import { FinancialConnectionsEvent } from './types/FinancialConnections';

export const createPaymentMethod = async (
params: PaymentMethod.CreateParams,
Expand Down Expand Up @@ -540,7 +539,7 @@ export const collectBankAccountForSetup = async (
*/
export const collectBankAccountToken = async (
clientSecret: string,
onEvent?: (event: FinancialConnectionsEvent) => void
onEvent?: (event: FinancialConnections.FinancialConnectionsEvent) => void
): Promise<FinancialConnections.TokenResult> => {
const subscription =
onEvent && eventEmitter.addListener('onFinancialConnectionsEvent', onEvent);
Expand Down Expand Up @@ -577,7 +576,7 @@ export const collectBankAccountToken = async (
*/
export const collectFinancialConnectionsAccounts = async (
clientSecret: string,
onEvent?: (event: FinancialConnectionsEvent) => void
onEvent?: (event: FinancialConnections.FinancialConnectionsEvent) => void
): Promise<FinancialConnections.SessionResult> => {
const subscription =
onEvent && eventEmitter.addListener('onFinancialConnectionsEvent', onEvent);
Expand Down

0 comments on commit f0a1c5d

Please sign in to comment.