Skip to content

Commit

Permalink
Increase polling timeout (#258)
Browse files Browse the repository at this point in the history
  • Loading branch information
KeinAsylum authored Oct 27, 2023
1 parent 83d4fd0 commit 6ef5fbc
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 13 deletions.
2 changes: 1 addition & 1 deletion src/app/hooks/use-invoice-events.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import isNil from 'checkout/utils/is-nil';
import { PayableInvoiceData } from './create-payment';
import { PollingResult, pollInvoiceEvents } from './invoice-events';

const API_METHOD_CALL_MS = 5000;
const API_METHOD_CALL_MS = 1000;
const DEFAULT_TIMEOUT_MS = 60 * 1000 * 10;
const PAYMENT_STARTED_TIMEOUT_MS = 60 * 1000;

Expand Down
12 changes: 0 additions & 12 deletions src/app/initialize.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,18 +34,6 @@ creditCardType.addCard({
},
});

creditCardType.addCard({
niceType: 'Test',
type: 'test',
patterns: [3527, 3508],
gaps: [4, 8, 12],
lengths: [16],
code: {
name: 'CVV',
size: 3,
},
});

const initSentry = async (dsn: string) => {
const { init, BrowserTracing, Replay } = await import('@sentry/react');
const { CaptureConsole } = await import('@sentry/integrations');
Expand Down

0 comments on commit 6ef5fbc

Please # to comment.