OMPX JavaScript SDK
Preparing search index...
@ompx/core
OmpxClientHooks
Interface OmpxClientHooks
interface
OmpxClientHooks
{
onAfterPayment
?:
(
ctx
:
{
protocol
:
Protocol
;
settlement
?:
Settlement
}
,
)
=>
Promise
<
void
>
;
onBeforePayment
?:
(
ctx
:
PaymentCreationContext
,
)
=>
Promise
<
void
|
AbortResult
>
;
onPaymentFailure
?:
(
ctx
:
PaymentFailureContext
)
=>
Promise
<
void
>
;
onPaymentRequired
?:
(
ctx
:
PaymentRequiredContext
,
)
=>
Promise
<
void
|
{
headers
:
Record
<
string
,
string
>
}
>
;
}
Index
Properties
on
After
Payment?
on
Before
Payment?
on
Payment
Failure?
on
Payment
Required?
Properties
Optional
on
After
Payment
onAfterPayment
?:
(
ctx
:
{
protocol
:
Protocol
;
settlement
?:
Settlement
}
,
)
=>
Promise
<
void
>
Optional
on
Before
Payment
onBeforePayment
?:
(
ctx
:
PaymentCreationContext
)
=>
Promise
<
void
|
AbortResult
>
Optional
on
Payment
Failure
onPaymentFailure
?:
(
ctx
:
PaymentFailureContext
)
=>
Promise
<
void
>
Optional
on
Payment
Required
onPaymentRequired
?:
(
ctx
:
PaymentRequiredContext
,
)
=>
Promise
<
void
|
{
headers
:
Record
<
string
,
string
>
}
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Properties
on
After
Payment
on
Before
Payment
on
Payment
Failure
on
Payment
Required
OMPX JavaScript SDK
Loading...