Reference > Payments subsystem > Payments subsystem


Payments subsystem architecture


Overview

The Payments subsystem contains three main parts:

Concepts...

The Payments subsystem contains three main parts:


Payment processing flow

The following diagram shows how a payment is processed by the Payments subsystem.

  1. The shopper or CSR completes an order. When the order is submitted, the OrderProcess command runs, then invokes the PrimePayment payment task command.

  2. The Payment rules engine determines the payment action that needs to be performed, for example, Approve.

  3. The payment action is wrapped into an event, which is passed to the Payment plug-in controller. For example, for the approve action, the Payment plug-in controller API Approve is called.

  4. The Payment plug-in controller determines which plug-in to use.

  5. The payment action is invoked against the plug-in. For example, for approve action, the API approve of the corresponding plug-in is called.

  6. The plug-in interacts with the Payment Service Provider.

  7. The plug-in sets the transaction state according to the transaction execution results with the Payment Service Provider. This transaction state will return to the Payment plug-in controller.

  8. The Payment plug-in controller updates the payment related records in the database according to the state of transaction execution returned by the plug-in.


See


Related concepts

Payment plug-in controller

Payments subsystem

Payment events and task commands

Payments subsystem advantages


+

Search Tips   |   Advanced Search