Skip to content

Instantly share code, notes, and snippets.

@pippinsplugins
Created October 10, 2014 21:00
Show Gist options
  • Save pippinsplugins/5629997157daa96ad9a7 to your computer and use it in GitHub Desktop.
Save pippinsplugins/5629997157daa96ad9a7 to your computer and use it in GitHub Desktop.
Adds a handling fee to EDD purchases that go through PayPal Standard
<?php
/**
* Plugin Name: Easy Digital Downloads - PayPal Handling Fee
* Description: Adds a handling fee to EDD purchases that go through PayPal
* Author: Pippin Williamson
* Author URI: http://pippinsplugins.com
* Contributors: mordauk
* Version: 1.0
*/
function pw_edd_paypal_handling_fee( $args, $purchase_data ) {
$args['handling'] = '10';
return $args;
}
add_filter( 'edd_paypal_redirect_args', 'pw_edd_paypal_handling_fee', 10, 2 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment