Magento Stack Exchange is a question and answer site for users of the Magento e-Commerce platform. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top
 I am getting an error such SoapFault - faultcode: '1071' faultstring: 'Payment method data is empty.' faultactor: 'null' detail: null.Please could   anyone  help me 


   SoapObject customerEntity1 = new SoapObject(NAMESPACE,"shoppingCartPaymentMethodEntity");
       // customerEntity1.addProperty("po_number","null");
        customerEntity1.addProperty("method","paypal_standard");
       // customerEntity1.addProperty("cc_cid","null");
       //customerEntity1.addProperty("cc_owner","null");
       //customerEntity1.addProperty("cc_number","null");
       // customerEntity1.addProperty("cc_type","null");

        request = new SoapObject(NAMESPACE, "shoppingCartPaymentMethod");
        request.addProperty("sessionId", sessionId);
        request.addProperty("quoteId", quoteId);
        request.addProperty("paymentMethod", customerEntity1);
        request.addProperty("storeId",0);
        env.setOutputSoapObject(request);


        env.setOutputSoapObject(request);
        androidHttpTransport.call("", env);
        Boolean customerAddressAdded1 = (Boolean) env.getResponse();



        Log.d("shoppingCartPayment", customerAddressAdded1.toString());
share|improve this question

bumped to the homepage by Community 47 mins ago

This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.

    
please check here – Baby in Magento May 26 '16 at 6:01

Magento api is giving error because you are sending your Card details is null. You have to send data in cart array.

$result = $proxy->shoppingCartPaymentMethod($sessionId, 10, array(
'po_number' => Purchase order number,
'method' => 'checkmo',
'cc_cid' => Credit card CID ,
'cc_owner' => Credit card owner ,
'cc_number' => Credit card number,
'cc_type' => Credit card type,
'cc_exp_year' => Credit card expiration year ,
'cc_exp_month' => Credit card expiration month 
));  

share|improve this answer
    
In documentation it is given null – Deepti Deshpande Oct 21 '15 at 11:08
    
Thanks but method used in our case is paypal so its giving me again the same error – Deepti Deshpande Oct 21 '15 at 11:11
    
The Payment method that you're using must be in magento store as if you are using paypal then first you have to integrate paypal in your store then get payment list and after that send request – Dev Nishad Oct 21 '15 at 18:30
    
please check here – Baby in Magento May 26 '16 at 6:01

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.