cancel
Showing results for 
Search instead for 
Did you mean: 

Paypal's _placeOrder function not being triggered

Paypal's _placeOrder function not being triggered

Hi I have a REST API that allows orders to be placed programmatically, however when I use paypal_direct as my payment method this line of code in my API fails:

 

$service = Mage::getModel('sales/service_quote', $quote)->submitAll();

 

and the following error is thrown:

 

{"messages":{"error":[{"code":0,"message":"Please enter a valid credit card verification number."}]}}

 

The source of this error is the validate() function in the Cc.php file and upon further investigation the _placeOrder function is never triggered. Has anyone else encountered a similar problem with Paypal before? I suspect this is a configuration issue with Paypal.