Paypal Advanced

Discussion in 'Plugins & Reports' started by Quadidra Williams, Apr 13, 2015.

  1. Quadidra Williams

    Quadidra Williams New Member

    Joined:
    Apr 13, 2015
    Messages:
    1
    Likes Received:
    0
    I know that there is currently no plugin for the Paypal Advanced option so, I wrote one for my company. However, there is no list of current functions for Clientexec. I was wondering what file or function updates the invoicetransaction table and invoice status. Also, is there existing functions to pull the parameters from the plugin. I currently wrote php code to handle all of this by querying the database but if these functions exist I would like to use them.
     
    #1
  2. CE-Juan

    CE-Juan Moderator Staff Member

    Joined:
    Aug 27, 2011
    Messages:
    625
    Likes Received:
    70
    Hi,

    You can take a look at the Paypal plugin we have.

    Open the file:
    \plugins\gateways\paypal\PluginPaypalCallback.php

    There you can see calls like this:

    PHP:
    require_once 'modules/billing/models/class.gateway.plugin.php';
    PHP:
            // Create Plugin class object to interact with CE.
            
    $cPlugin = new Plugin($tInvoiceID'paypal'$this->user);
    PHP:
            //Add plugin details
            
    $cPlugin->setAmount($ppPayAmount);
            
    $cPlugin->m_TransactionID $ppTransID;
            
    $cPlugin->m_Action "charge";
            
    $cPlugin->m_Last4 "NA";
    PHP:
    $cPlugin->PaymentAccepted($ppPayAmount,$transaction,$ppTransID$testing);
    PHP:
    $cPlugin->PaymentPending($transaction,$ppTransID);
    PHP:
    $cPlugin->PaymentRejected($transaction);


    PHP:
    $cPlugin->m_Action "refund";
    PHP:
    $cPlugin->PaymentRefunded($ppPayAmount,$transaction,$ppTransID);

    If you need something else, please let me know.



    Thanks.
     
    #2

Share This Page