pai
Preparing search index...
pai
waitForPayment
Function waitForPayment
waitForPayment
(
apiKey
:
string
,
paymentId
:
string
,
opts
?:
{
baseUrl
?:
string
;
intervalMs
?:
number
;
onStatus
?:
(
status
:
string
)
=>
void
;
recoveryCode
?:
string
;
sleep
?:
(
ms
:
number
)
=>
Promise
<
void
>
;
timeoutMs
?:
number
;
}
,
)
:
Promise
<
PaymentStatusResult
>
Polls a payment until the credit lands, or it expires or fails.
Parameters
apiKey
:
string
paymentId
:
string
opts
:
{
baseUrl
?:
string
;
intervalMs
?:
number
;
onStatus
?:
(
status
:
string
)
=>
void
;
recoveryCode
?:
string
;
sleep
?:
(
ms
:
number
)
=>
Promise
<
void
>
;
timeoutMs
?:
number
;
}
= {}
Returns
Promise
<
PaymentStatusResult
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
pai
Loading...
Polls a payment until the credit lands, or it expires or fails.