• Resolved tonuz

    (@tonuz)


    Hi Team,

    Is there a way to restrict Pay Later to a minimum order account (30€) ?

    Regards,
    Antoine

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

    (@mrclayton)

    Hi @tonuz

    It is possible by using the provided PayPal plugin filters and adding some custom code. There isn’t currently an option that will allow you to do that.

    If you like, we can provide an example of the custom code that you can add to your site to restrict PayLater based on a minimum amount.

    Kind Regards,

    Thread Starter tonuz

    (@tonuz)

    Yes please ??

    Plugin Author Payment Plugins

    (@mrclayton)

    Here is an example. Test before implementing.

    add_filter('wc_ppcp_add_payment_method_data', function($data){
        if(is_checkout() && WC()->cart->total < 30){
            foreach($data['funding'] as $idx => $funding){
                if($funding === 'paylater'){
                    unset($data[$idx]);
                }
            }
        }
        return $data;
    });
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Pay Later (PayPal 4x) minimum amount’ is closed to new replies.