Reference > Payments subsystem > Payment plug-in specification
Financial transaction execution flow
The Financial transaction execution flow illustrates how a financial transaction occurs, and how WebSphere Commerce interacts with the payment plug-in.
- The external application, such as WebSphere Commerce, requests an approve transaction.
- The Payment plug-in controller looks up the Payment that the approve transaction will be executed against.
- The Payment plug-in controller looks up the PaymentInstruction that will service the request.
- The Payment plug-in controller creates a FinancialTransaction that describes the approve transaction.
- The Payment plug-in controller finds the target plug-in to process the financial transaction.
- The Payment plug-in controller creates a PluginContext object with the plug-in deployment descriptor data.
- The Payment plug-in controller invokes the Plugin.approve() method.
- The plug-in returns the updated FinancialTransaction or throws an exception.
- The plug-in returns the results to the external application.