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
FieldsModifier and TypeFieldDescriptionprotected final BusinessUnitManagerprotected final CommandExecutorprotected final Contextprotected final QueryBuilderFactoryprotected final RunEnvironmentServiceprotected final SecurityManager -
Constructor Summary
ConstructorsConstructorDescriptionPaymentServiceImpl(Context context, QueryBuilderFactory queryBuilderFactory, SecurityManager securityManager, BusinessUnitManager businessUnitManager, CommandExecutor commandExecutor, RunEnvironmentService runEnvironmentService) -
Method Summary
Modifier and TypeMethodDescription@Nullable StringcreateOrder(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:PaymentServiceCreates an order if required by payment type. Otherwise retuns null.- Specified by:
createOrderin interfacePaymentService- Throws:
PersistExceptionInterruptedException
-
getOrderInfo
public PaymentService.OrderInfo getOrderInfo(String orderKey, @Nullable @Nullable String emailAddress) Description copied from interface:PaymentServiceFlow requires this information for setup.- Specified by:
getOrderInfoin interfacePaymentService
-