Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

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