Page 1 of 1

Check out response problem

Posted: Mon Mar 04, 2013 5:35 am
by cbj
I want to start by thanking everyone involved for the great work in creating this powerful ecommerce platfom.

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

Re: Check out response problem

Posted: Mon Mar 04, 2013 8:47 am
by phillipuniverse
Try debugging in PaymentActivity (which is invoked in the checkout workflow). Does that end up executing your payment module which is responsible for setting up those response items? Which payment provider do you have configured?

Re: Check out response problem

Posted: Mon Mar 04, 2013 12:41 pm
by cbj
Ok, I have managed to get over that hurdle thanks to your hint. Please continue the good work!