AbstractPaymentProcessor
Payment processor in charge of creating , managing and processing a payment
constructor
Parameters
config
Record<string, unknown>Properties
Methods
authorizePayment
Authorize an existing session if it is not already authorized
Parameters
paymentSessionData
Record<string, unknown>Requiredcontext
Record<string, unknown>RequiredReturns
cancelPayment
Cancel an existing session
Parameters
paymentSessionData
Record<string, unknown>RequiredReturns
capturePayment
Capture an existing session
Parameters
paymentSessionData
Record<string, unknown>RequiredReturns
deletePayment
Delete an existing session
Parameters
paymentSessionData
Record<string, unknown>RequiredReturns
getIdentifier
Return a unique identifier to retrieve the payment plugin provider
Returns
string
stringgetPaymentStatus
Return the status of the session
Parameters
paymentSessionData
Record<string, unknown>RequiredReturns
initiatePayment
Initiate a payment session with the external provider
Parameters
Returns
refundPayment
Refund an existing session
Parameters
paymentSessionData
Record<string, unknown>RequiredrefundAmount
numberRequiredReturns
retrievePayment
Retrieve an existing session
Parameters
paymentSessionData
Record<string, unknown>RequiredReturns
updatePayment
Update an existing payment session
Parameters
Returns
updatePaymentData
Update the session data for a payment session
Parameters
sessionId
stringRequireddata
Record<string, unknown>RequiredReturns
Was this section helpful?