Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.