aMember and Post Affiliate Pro 4

Discussion in 'Integration' started by doubleplus, May 28, 2009.

  1. doubleplus

    doubleplus New Member

    Joined:
    Nov 28, 2007
    Messages:
    8
    I want to use Post Affiliate Pro 4. The key is, I want it to track recurring commissions. So, what I need is, when aMember processes a monthly subscription fee, it sends PAP4 a command to record the sale.

    There is no plugin for integration that I can find. The PAP docs say that, to integrate with PAP, the following code could inform PAP of a transaction:

    $session = new Gpf_Api_Session("URL_TO_PAP/scripts/server.php");

    $recurringCommission = new Pap_Api_RecurringCommission($session);
    $recurringCommission->setOrderId('order_123456789');
    try {
    $recurringCommission->createCommissions();
    } catch (Exception $e) {
    die("Can not process recurring commission: ".$e->getMessage());
    }

    I'm using PayPal Website Payments Pro for payment method. Is there a way to integrate this code such that monthly renewal payments would trigger Post Affiliate Pro? And how would it know what affiliate to apply it to?
  2. missionphoenix

    missionphoenix aMember Pro Customer

    Joined:
    Dec 28, 2007
    Messages:
    8
    Was this ever answered? I'm needing the same.
  3. alexander

    alexander Administrator Staff Member

    Joined:
    Jan 8, 2003
    Messages:
    6,279
    Sure such integration is possible. Where to download mentioned API? I will provide exact example.
  4. jloswald

    jloswald New Member

    Joined:
    Apr 20, 2010
    Messages:
    4
    Amember + Post Affiliate Pro

    I am looking to integrate Amember + Post Affiliate Pro, does anyone have instructions?, is there a plug in?, is someone willing to do this for a fee?

Share This Page