urembo-hub-api
Preparing search index...
payments/payments.controller
PaymentsController
Class PaymentsController
Index
Constructors
constructor
Methods
get
Payment
Stats
handle
Payment
Callback
initialize
Payment
process
Payment
process
Refund
verify
Payment
Constructors
constructor
new
PaymentsController
(
paymentsService
:
PaymentsService
)
:
PaymentsController
Parameters
paymentsService
:
PaymentsService
Returns
PaymentsController
Methods
get
Payment
Stats
getPaymentStats
()
:
Promise
<
{
failedTransactions
:
number
;
successfulTransactions
:
number
;
totalAmount
:
number
;
totalTransactions
:
number
;
}
,
>
Returns
Promise
<
{
failedTransactions
:
number
;
successfulTransactions
:
number
;
totalAmount
:
number
;
totalTransactions
:
number
;
}
,
>
handle
Payment
Callback
handlePaymentCallback
(
reference
:
string
,
)
:
Promise
<
{
message
?:
string
;
orderId
?:
string
;
success
:
boolean
}
>
Parameters
reference
:
string
Returns
Promise
<
{
message
?:
string
;
orderId
?:
string
;
success
:
boolean
}
>
initialize
Payment
initializePayment
(
paymentData
:
PaystackPaymentData
)
:
Promise
<
PaystackResponse
>
Parameters
paymentData
:
PaystackPaymentData
Returns
Promise
<
PaystackResponse
>
process
Payment
processPayment
(
orderId
:
string
,
paymentData
:
PaystackPaymentData
,
)
:
Promise
<
{
authorization_url
?:
string
;
message
?:
string
;
reference
?:
string
;
success
:
boolean
;
}
,
>
Parameters
orderId
:
string
paymentData
:
PaystackPaymentData
Returns
Promise
<
{
authorization_url
?:
string
;
message
?:
string
;
reference
?:
string
;
success
:
boolean
;
}
,
>
process
Refund
processRefund
(
orderId
:
string
,
body
:
{
reason
:
string
}
,
)
:
Promise
<
{
message
?:
string
;
success
:
boolean
}
>
Parameters
orderId
:
string
body
:
{
reason
:
string
}
Returns
Promise
<
{
message
?:
string
;
success
:
boolean
}
>
verify
Payment
verifyPayment
(
reference
:
string
,
)
:
Promise
<
{
data
?:
any
;
message
?:
string
;
success
:
boolean
}
>
Parameters
reference
:
string
Returns
Promise
<
{
data
?:
any
;
message
?:
string
;
success
:
boolean
}
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Methods
get
Payment
Stats
handle
Payment
Callback
initialize
Payment
process
Payment
process
Refund
verify
Payment
urembo-hub-api
Loading...