|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PaymentProcessor
Interface for objects that are able to process payments in the store. Custom
payment processors must simply implement PaymentProcessor
.
(Although it may be useful also to extend
BasePaymentProcessor
.)
To change or add to the list of payment processors currently active in the
system, modify the "activePaymentProcessors" setting in the
appComponents.properties
file.
During checkout the Struts layer loops through each of the
"activePaymentFormTemplates" to display a set of payment forms for the user.
Based on the form that user chooses to submit, the Struts layer calls the
"activePaymentProcessor" that corresponds to it. It invokes the
processPayment(Map)
method to process the submission. The incoming
Map
contains the various input parameters submitted by the
user.
There is one default "activePaymentProcessor":
BasicPaymentProcessor
.
Method Summary | |
---|---|
java.util.Map |
processPayment(java.util.Map parameters)
Process the payment for the current user's order. |
Methods inherited from interface com.softslate.commerce.businessobjects.core.BusinessObject |
---|
initialize |
Method Detail |
---|
java.util.Map processPayment(java.util.Map parameters) throws java.lang.Exception
Map
contains the various input parameters submitted by the
user.
parameters
- A Map
containing the values of the user's
submitted payment information.
Map
containing a least one key named
"resultCode", which contains a String parsable into an int,
representing the results of the processing. 0 for the resultCode
indicates success. Optionally, the Map
may include
additional keys, such as "resultMessage", a string describing the
results of the processing.
java.lang.Exception
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |