And how can I do this thing that on wire payment AcceptAndPassThroughModule should be instantiated and on Paypal PayPalPaymentModule should be instantiated?
I think you are aware of my xml changes for wire,here are the changes for Paypal:
Code: Select all
<bean id="blPayPalPaymentService" class="org.broadleafcommerce.core.payment.service.PaymentServiceImpl">
<property name="paymentModule" ref="blPayPalModule"/>
</bean>
<bean id="blPayPalModule" class="org.broadleafcommerce.payment.service.module.PayPalPaymentModule">
<property name="payPalPaymentService" ref="blPayPalVendorOrientedPaymentService"/>
</bean>
And now the blAuthorizeAnDebitWorkflow looks like this:
Code: Select all
<bean id="blAuthorizeAndDebitWorkflow" class="org.broadleafcommerce.core.workflow.SequenceProcessor">
<property name="processContextFactory">
<bean class="org.broadleafcommerce.core.payment.service.workflow.PaymentProcessContextFactory">
<property name="paymentActionType" value="AUTHORIZEANDDEBIT"/>
</bean>
</property>
<property name="activities">
<list>
<bean class="org.broadleafcommerce.core.payment.service.workflow.PaymentActivity">
<property name="paymentService" ref="blWirePaymentService"/>
</bean>
<bean class="org.broadleafcommerce.core.payment.service.workflow.PaymentActivity">
<property name="paymentService" ref="blPayPalPaymentService"/>
<property name="userName" value="web"/>
</bean>
</list>
</property>
<property name="defaultErrorHandler" ref="blDefaultErrorHandler"/>
</bean>
Thanks & Reagards
Hitesh Singla