PaymentProcessor
The new payment service plugin interface This work is still experimental and can be changed until it becomes stable
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?