WordPress.org

Ready to get started?Download WordPress

Forums

Personal Fundraiser
Personal Fundraiser Plugin and PayPal Pro Setup (2 posts)

  1. steckinsights
    Member
    Posted 1 year ago #

    John,

    Thanks for this excellent plugin and your work with CURE international.

    We have a PayPal Pro account that allows our payments to be handled using a form on our end. I'd like to know if you see any problems with linking to a PayPal Pro form instead of the "Donate" button?

    My concern is that if I do this, a donor's gift won't be attributed to that particular campaign. Any thoughts on this?

    Thanks again!

    http://wordpress.org/extend/plugins/personal-fundraiser/

  2. John Kleinschmidt
    Member
    Plugin Author

    Posted 1 year ago #

    If you want to use a custom form, you will need to add custom PHP code to your site to fire the pfund_add_gift action. This is the action that records gifts received.

    For example:

    <?php
    $transaction_array = array(
       'amount' => 100,
       'anonymous' => true,
       'donor_email' => 'joe@donuts.com',
       'donor_first_name'=> 'Joe',
       'donor_last_name'=> 'Bagadonuts',
       'success' => true,
       'transaction_nonce' => '123345' //MUST BE UNIQUE VALUE
       'comment' => 'Hi, this is Joe and I love this cause'
    );
    //Get the post tied to the campaign
    $post = get_post($campaign_id);
    do_action( 'pfund_add_gift', $transaction_array, $post );
    ?>

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic