The Payment plug-in specification uses the following container objects and financial transaction objects:
- Container objects:
- PaymentInstruction
- Payment
- Credit
- Financial transaction objects. A financial transaction object can be one of these types:
- approve
- deposit
- approveAndDeposit
- credit
- reverseApproval
- reverseDeposit
- reverseCredit
The WebSphere Commerce Payments component uses the following financial objects:
- Order
- Payment
- Credit
The WCPayments plug-in maps the plug-in specification objects to the WebSphere Commerce Payments financial objects as shown in the following table:
Plug-in value object attributes | WebSphere Commerce Payments object attributes |
---|---|
FinancialTransaction.trackingId | OrderNumber of Payment object or Credit object |
FinancialTransaction.financialCode | PaymentNumber of Payment object
CreditNumber of Credit object |
PaymentInstruction.storeId | MerchantNumber of Order object, Payment object, Credit object |
PaymentInstruction.currency | Currency of Order object, Payment object, Credit object |
PaymentInstruction.orderId | TransactionID of Order object |
One plug-in Payment container object maps to one WebSphere Commerce Payments Order object and one WebSphere Commerce Payments Payment object.
Each financial transaction associated with a plug-in Payment container object will be processed on the same Payment object in WebSphere Commerce Payments. Likewise, each financial transaction associated with a Credit object will be processed on the same Credit object in WebSphere Commerce Payments.
One plug-in Credit container object maps to one WebSphere Commerce Payments Order object and one WebSphere Commerce Payments Credit object.
More information about WebSphere Commerce Payment payment objects is available in the WebSphere Commerce Payments Programming Guide and Reference available from the WebSphere Commerce Technical Library page http://www.ibm.com/software/commerce/library/.