@payos-inc/payos-react 1.2.1-staging.103 → 1.2.1-staging.105
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/payos-react.cjs +13 -13
- package/dist/payos-react.esm.js +13 -13
- package/dist/payos-react.min.js +1 -1
- package/dist/payos-react.mjs +13 -13
- package/dist/types/payos-react/src/components/payos/usePaymentSheetLifecycle.d.ts +1 -0
- package/dist/types/payos-react/src/services/apiService.d.ts +8 -0
- package/package.json +1 -1
|
@@ -34,5 +34,6 @@ interface UsePaymentSheetLifecycleArgs {
|
|
|
34
34
|
export declare function usePaymentSheetLifecycle({ theme, open, linkSession, error, onError, phase, session, completionResult, onSuccess, isAgentMode, isSetupMode, phoneNumber, setPhoneNumber, selectedCountry, resendCooldown, setResendCooldown, setRetryCount, setOTP, registrationSubPhase, clearPasskeyError, setLocalError, clearError, paymentView, setPhase, }: UsePaymentSheetLifecycleArgs): {
|
|
35
35
|
approvalDeadline: number | null;
|
|
36
36
|
secondsRemaining: number | null;
|
|
37
|
+
flushSuccess: () => void;
|
|
37
38
|
};
|
|
38
39
|
export {};
|
|
@@ -36,6 +36,14 @@ export declare class ApiError extends Error {
|
|
|
36
36
|
code?: string;
|
|
37
37
|
constructor(message: string, status: number, details?: string, code?: string);
|
|
38
38
|
}
|
|
39
|
+
/**
|
|
40
|
+
* Maximum time a single API request (including reading its body) may take.
|
|
41
|
+
* Longer than the backend's own 30s upstream network timeout (plus a vault
|
|
42
|
+
* call before it on generate), so a slow but successful call is not reported
|
|
43
|
+
* to the customer as failed.
|
|
44
|
+
*/
|
|
45
|
+
export declare const REQUEST_TIMEOUT_MS = 60000;
|
|
46
|
+
export declare const REQUEST_TIMEOUT_MESSAGE = "The request timed out. Check your connection and try again.";
|
|
39
47
|
/**
|
|
40
48
|
* Send OTP verification code to a phone number
|
|
41
49
|
* @param baseUrl API base URL
|
package/package.json
CHANGED