Class PaymentServiceImpl
java.lang.Object
ch.tocco.nice2.optional.onlinepayment.impl.flow.PaymentServiceImpl
- All Implemented Interfaces:
PaymentService
-
Nested Class Summary
Nested classes/interfaces inherited from interface ch.tocco.nice2.optional.onlinepayment.impl.flow.PaymentService
PaymentService.OrderInfo, PaymentService.PaymentInformationException
-
Field Summary
Modifier and TypeFieldDescriptionprotected final BusinessUnitManager
protected final CommandExecutor
protected final Context
protected final QueryBuilderFactory
protected final RunEnvironmentService
protected final SecurityManager
-
Constructor Summary
ConstructorDescriptionPaymentServiceImpl
(Context context, QueryBuilderFactory queryBuilderFactory, SecurityManager securityManager, BusinessUnitManager businessUnitManager, CommandExecutor commandExecutor, RunEnvironmentService runEnvironmentService) -
Method Summary
Modifier and TypeMethodDescription@Nullable String
createOrder
(String toOrderType, String toOrderKey, String paymentMethodKey) Creates an order if required by payment type.getOrderInfo
(String orderKey, @Nullable String emailAddress) Flow requires this information for setup.
-
Field Details
-
context
-
queryBuilderFactory
-
securityManager
-
businessUnitManager
-
commandExecutor
-
runEnvironmentService
-
-
Constructor Details
-
PaymentServiceImpl
public PaymentServiceImpl(Context context, QueryBuilderFactory queryBuilderFactory, SecurityManager securityManager, BusinessUnitManager businessUnitManager, CommandExecutor commandExecutor, RunEnvironmentService runEnvironmentService)
-
-
Method Details
-
createOrder
@Nullable public @Nullable String createOrder(String toOrderType, String toOrderKey, String paymentMethodKey) throws PersistException, InterruptedException Description copied from interface:PaymentService
Creates an order if required by payment type. Otherwise retuns null.- Specified by:
createOrder
in interfacePaymentService
- Throws:
PersistException
InterruptedException
-
getOrderInfo
public PaymentService.OrderInfo getOrderInfo(String orderKey, @Nullable @Nullable String emailAddress) Description copied from interface:PaymentService
Flow requires this information for setup.- Specified by:
getOrderInfo
in interfacePaymentService
-