cancel
Showing results for 
Search instead for 
Did you mean: 

Your card payment has failed, please try again.Magento BrainTree Credit Card SOAP V2 API

Your card payment has failed, please try again.Magento BrainTree Credit Card SOAP V2 API

I am trying to post order on magento 1.9, using SOAP V2 API, I have 2 payment methods gene_braintree_creditcard and cashondelivery, using cashondevlivery I am able to post order successfully. But when I pass gene_braintree_creditcard it gives me error Your card payment has failed, please try again.

$paymentData =  array(
    'po_number' => null,
    'method' => 'gene_braintree_creditcard', 
    'cc_cid' => "000",
    'cc_owner' => "Test",
    'cc_number' => "4111111111111111",
    'cc_type' => "VI",
    'cc_exp_year' => "2023",
    'cc_exp_month' => "02"
); 
try{
    $response = $proxy->shoppingCartPaymentMethod($sessionId, $quoteId, $paymentData);
}
catch(Exception $e) { 
    echo 'Message: ' .$e->getMessage();
  }

 

Currently braintree is set to SANDBOX mode.