Mapping payment components to providers
All payment providers defined in your config are passed to the frontend, these are then in turn mapped to components.
key for each value in
paymentCodeToPluginMap should be linked to the name of the
provider in the your config.
How payment components work
As a general rule, Payment UIs will need some form of authentication. We use the initialize method in our provider to pass data to our component to do this. This is triggered when our payment method is selected and before the component is rendered.
Each component is passed the
pay() function. This function in turn triggers the validate method in your provider.