You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Improved type definitions; Improved retry logic; Improved component behavior so that external script download is only initiated when the function is called/button is pushed
maxAttempt=isNumber(maxAttempt) ? Math.max(1,maxAttempt) : DEFAULT_VALUE;// Ensure minimum of 1 for maxAttempt, revert to the default value otherwise
29
-
retryDuration=isNumber(retryDuration) ? Math.max(1,retryDuration) : DEFAULT_VALUE;// Ensure minimum of 1 for retryDuration, revert to the default value otherwise
maxAttempt=isNumber(maxAttempt) ? Math.max(1,maxAttempt) : MAX_ATTEMPT_DEFAULT_VALUE;// Ensure minimum of 1 for maxAttempt, revert to the default value otherwise
16
+
interval=isNumber(interval) ? Math.max(1,interval) : INTERVAL_DEFAULT_VALUE;// Ensure minimum of 1 for retryDuration, revert to the default value otherwise
if(error)thrownewError('We\'re having trouble loading the Flutterwave payment modal due to a network issue. Please check your internet connection and try again later.');
21
-
},[error]);
22
-
23
19
/**
24
20
*
25
21
* @param object - {callback, onClose}
26
22
*/
27
-
functionhandleFlutterwavePayment({
23
+
returnasyncfunctionhandleFlutterwavePayment({
28
24
callback,
29
25
onClose,
30
-
}: InitializeFlutterwavePayment): void{
31
-
if(error)thrownewError('We\'re having trouble loading the Flutterwave payment modal due to a network issue. Please check your internet connection and try again later.');
0 commit comments