The SiteGenesis application supports dynamic payment processing, which makes it easy for you to add new payment methods to your storefront application.
The payment method is what is offered to the customer, while the payment processor is what integrates with a payment provider. The SiteGenesis application uses a generic approach to payment authorization that:
To integrate a new payment processor, start by creating a new payment
type by selecting
site > Ordering > Payment
Processors | Payment Methods. Next, integrate the payment processing
methodology into your application using the SiteGenesis code as an
example. SiteGenesis provides a generic pipeline-structure that is called
in COBilling
and COPlaceOrder
(in the
SiteGenesis Storefront Core cartridge) for handling and authorizing the
selected payment method, thus avoiding a static verification of the
selected method. The actual reference from the selected payment method to
the integration code is payment processor specific and not payment method
specific.
You can use existing sample pipelines for preexisting payment processors such as:
This sample code merely illustrates the pattern of payment integration. These pipelines provide no real integration into external payment systems, such as PayPal or Cybersource. However, existing integration code (either from LINK cartridges or custom integration logic) can be easily migrated into the above pattern to be called appropriately by the SiteGenesis storefront
In Business Manager:
In Studio:
{PaymentProvider}.xml
).