WordPress.org

Ready to get started?Download WordPress

Forums

Easy Digital Downloads
[resolved] How do I get DONATIONS for downloads, instead of purchases? (6 posts)

  1. Adam
    Member
    Posted 1 year ago #

    Hi,

    I really like this plugin, but I would like some assistance on how to setup a donation concept, rather than a product purchasing concept.

    My site will have a premium WordPress plugin as an incentive for people to donate to the development of the plugin. I want to set up the plugin in the way that a user will click donate, then it will go through PayPal, and once the donation process is complete, the donor to the plugin development project will receive their premium plugin (a.k.a. the incentive) as a thank you for their donation, through my site.

    I would also like to know how to set up a PayPal IPN, so that people who donated will receive their download link automatically.

    Sincerely,

    Adam

    http://wordpress.org/extend/plugins/easy-digital-downloads/

  2. Adam,

    The only thing you should need to do here is hook into the EDD PayPal data before it gets sent to PayPal and modify the API args to mark it as a donation.

    Are you familiar with hooks and filters?

  3. Adam
    Member
    Posted 1 year ago #

    Hi,

    I am somewhat familiar with hooks and filters, but if you could give me the full gist of thing, it would be greatly appreciated.

    Sincerely,

    Adam

  4. This should work:

    function pw_edd_paypal_donate( $args, $purchase_data ) {
        $args['cmd'] = '_donations';
        return $args;
    }
    add_filter( 'edd_paypal_redirect_args', 'pw_edd_paypal_donate', 10, 2 );
  5. mankas
    Member
    Posted 7 months ago #

    Hi Pippin,

    I am not so familiar in modifying plugins, could you guide me where I should put the code above?

    I need to redirect to donation option of paypal as well.

    Thanks

  6. Pippin Williamson
    Pippin's Plugins and Plugin Reviewer
    Plugin Author

    Posted 6 months ago #

    Easiest thing is to put it in a custom plugin, which you can create with Pluginception: http://wordpress.org/plugins/pluginception/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic