Payment Initialization
Payment Initialization
Payment initialization
This component does not have any functional requirements that it needs to cater to but plays an
important role in payment processing by providing inputs required by multiple components in the
payment flow .
The main purpose of this component is to describe the set of values that need to be initialized as
part of the payment order that will required by not just one component but multiple components in
their respective processing .
As mentioned above in the purpose section, the main functionality of this component is to retrieve
values from the database and set the values in the payment order so that it can be used by multiple
components. Another function is to update transaction amount in home currency of the company in
the payment order by invoking the FX Component.
The need to have this component is to ensure multiple components do not retrieve this value by
making individual communication with the database. Each call made to the database to retrieve the
same value will hinder the payment performance.
Even if there is an output that is defined at company level and will always need to be looked (for
every payment) up from the database by only one component, it is still retrieved and stored as part
of the payment object so that the other component does not have to make a query to the database
table again where the company attributes are stored.Most of the values that need to be retrieved
are not based on the payment characteristics but are associated with the company processing the
payment (defined at company level) and will remain the same for all payments for that processing
company.