I have a problem with the customizing payment workflow. I have done every thing as described in the customizing payment workflow tutorial and broadleaf is using my custom payment workflow and is successfully calling methods of my payment service as expected.
This line below in my completeMyPaymentCheckout method (which is inside a controller mapped to checkout/complete executes without visible exceptions:
Code: Select all
CheckoutResponse checkoutResponse = checkoutService.performCheckout(cart, payments);
However shortly after execution of the above line the line below leads to a null pointer exception
Code: Select all
if (!checkoutResponse.getPaymentResponse().getResponseItems().get(emInfo).getTransactionSuccess()) {
Clearly the performCheckout(cart, payments) method completes the order and even records it in the BLC_ORDERS table as 'SUBMITTED' however there there are no corresponding responseItems generated which leads to the error in the if statement.
Please assist with pointers as to where I could be going wrong. Thanks in advance