Hello,
I'm making integration with Magento using Java, can create the cart, add customer, address, product and shipping.
When I try to make the payment, I get the error "Client received SOAP Fault from server: Payment method is not allowed"
Part of the error code that is this:
ShoppingCartPaymentMethodEntity shoppingCartPaymentMethodEntity ShoppingCartPaymentMethodEntity = new ();
shoppingCartPaymentMethodEntity.setCcCid (null);
shoppingCartPaymentMethodEntity.setCcExpMonth (null);
shoppingCartPaymentMethodEntity.setCcExpYear (null);
shoppingCartPaymentMethodEntity.setCcNumber (null);
shoppingCartPaymentMethodEntity.setCcOwner (null);
shoppingCartPaymentMethodEntity.setCcType (null);
shoppingCartPaymentMethodEntity.setPoNumber (null);
shoppingCartPaymentMethodEntity.setMethod ( "cashondelivery");
ShoppingCartPaymentMethodRequestParam shoppingCartPaymentMethodRequestParam ShoppingCartPaymentMethodRequestParam = new ();
shoppingCartPaymentMethodRequestParam.setSessionId (sessionId);
shoppingCartPaymentMethodRequestParam.setQuoteId (quoteId);
shoppingCartPaymentMethodRequestParam.setStore (System.getProperty ( "STOREID"));
shoppingCartPaymentMethodRequestParam.setPaymentData (shoppingCartPaymentMethodEntity);
ShoppingCartPaymentMethodResponseParam paymentResult = port.shoppingCartPaymentMethod (shoppingCartPaymentMethodRequestParam);
System.err.println ( "payment result" + paymentResult.isResult ());
Use Magento 1.9.2.2 - The payment method is enabled.
Any idea what is happening?