Magento Forum

Magento Rest API Issue When Using PayPal Payment Advanced
 
ocbrianh
Jr. Member
 
Total Posts:  1
Joined:  2012-09-12
 

I’m using Magento’s Rest API to sell item from my Wordpress based site. I am having an issue when I try to use PayPal Payment Advanced to complete the transaction. Here is the code below:

$paymentArray = array(
    
"method" => "payflow_advanced",
    
'cc_cid' => $_POST['cccvv'],
    
'cc_owner' => $_POST['firstName'" "$_POST['lastName'],
    
'cc_number' => $_POST['ccnumber'],
    
//'cc_type' => "MC",
    
'cc_exp_year' => $_POST['ccmonth'],
    
'cc_exp_month' => $_POST['ccyear'],
);

$resultPaymentMethod $client->call($session'cart_payment.method', array($shoppingCartIncrementId$paymentArray));

When I run the code, it comes back as “true” but the api never hits PayPal and authorizes the transaction.

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top