Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Payment Plugins

    (@mrclayton)

    Hi @wandersongi

    The filter solution that was suggested there is not working anymore

    Nothing in the plugin has changed and that filter is still used. It’s possible your custom code is not executing. I recommend using a code snippets plugin when adding custom code to your site to ensure it gets run properly.

    Kind Regards

    Thread Starter wandersongi

    (@wandersongi)

    Hi There,

    I already tried to use a different code snippet to add the follow code:

    add_Filter('wc_braintree_order_transaction_args', function($args, $order){
        $args['amount'] = $args['amount'] + 5;
        unset($args['lineItems']); /* you can do this with code or using the option on the plugin settings pages*/
        return $args;
    }, 10, 2);

    But it still not working, and the code is not being called at all, looks like that “wc_braintree_order_transaction_args” is not being called.

    Plugin Author Payment Plugins

    (@mrclayton)

    Hi @wandersongi

    That filter is called every time a payment is processed. Here is a link to the current version of the plugin and you can see that filter is still used in the plugin.

    https://plugins.trac.www.ads-software.com/browser/woo-payment-gateway/tags/3.2.56/includes/abstract/abstract-class-wc-braintree-payment-gateway.php#L496

    Custom code not executing isn’t a Braintree plugin issue.

    Thanks

    Thread Starter wandersongi

    (@wandersongi)

    I see that in my plugin code as well.

    Is there any setting that I must change on my woocommerce payment settings? Everything seems correct to me.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Authorizing a card for more than the Order’s total’ is closed to new replies.