Created
October 10, 2014 21:00
-
-
Save pippinsplugins/5629997157daa96ad9a7 to your computer and use it in GitHub Desktop.
Adds a handling fee to EDD purchases that go through PayPal Standard
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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