The WCPayments plug-in implements the Payment plug-in specification and supports the payment transactions described in WCPayments payment plug-in.
When a request is sent from event-driven payments to the Payment Plug-in Controller, the Payment Plug-in Controller forwards the request to a specific payment plug-in. If the request is for the WCPayments plug-in, the WCPayments plug-in gets the information and creates the appropriate request for WebSphere Commerce Payments (for example, an APPROVE request). The WCPayments plug-in analyzes the response from WebSphere Commerce Payments and returns information to the Payment Plug-in Controller. If the response from WebSphere Commerce Payments is an error, the plug-in throws an exception.
The WCPayments plug-in does not externalize all the functions of WebSphere Commerce Payments. It does, however, provide application programming interfaces (APIs) to process different payment actions. The plug-in maps the APIs for payments and queries that are defined in the payment plug-in specification to a subset of the WebSphere Commerce Payments APIs. The APIs that are not supported by the Payment Plug-in Controller and the WCPayments plug-in are provided by WebSphere Commerce Payments.