Home Forums Theme Support Dokan Subscription Recurring NOT working

This topic is: not resolved

This topic contains 24 replies, has 3 voices, and was last updated by  Nayem 4 years, 1 month ago.

Viewing 10 posts - 16 through 25 (of 25 total)
  • Author
    Posts
  • #41851

    Tracy
    Member
    Post count: 134

    I sent the info…. though dokan has looked at it befoe and said it was fine.

    PLEASE MAKE SURE to check the subscription packs….
    1) make sure its recurring, monthly
    2) and goes thorugh paypal and then puts the subscription in your seller dash

    #41906

    Nayem
    Moderator
    Post count: 6480

    Hello Tracy,

    I got your details. Please allow us some time to check your site.

    #42123

    Nayem
    Moderator
    Post count: 6480

    Hello Tracy,

    Your user name and password is incorrect. Please provide us valid username and password.

    Thanks.

    #42324

    Nayem
    Moderator
    Post count: 6480
    This reply has been marked as private.
    #43903

    Tracy
    Member
    Post count: 134

    still waiting for this to be fixed…. have not heard further from Dokan…

    #43932

    Nayem
    Moderator
    Post count: 6480

    Hello Tracy,

    If you are using Paypal adaptive payment then recurring will not work. You have to use Paypal for recurring subscription.

    Thanks.

    #44056

    Tracy
    Member
    Post count: 134

    BUT if i add regular PayPal to my payment options… when a regular buyer “buys” the $ comes to me, and not hte seller.

    How do I have sellers/shops signup for recurring monthly subscriptions?

    #44060

    Nayem
    Moderator
    Post count: 6480

    Hello Tracy,

    We have find a way to use normal PayPal and PayPal adaptive payement both together. You have to active both PayPal and PayPal adaptive payment with both credential. Please follow those instruction-

    1. I will provide some code. You have to put the code in your child theme function.php file. After putting the code the main trick will happen.

    2. After putting the code when a seller will purchase subscription pack that time the payment will process with the normal paypal. But when user will purchase normal product then the payment will process with the PayPal adaptive payment.

    Here is the code –

    add_filter('woocommerce_available_payment_gateways','filter_gateways',1);
    
    function filter_gateways(  $gateways ){
        
        foreach ( WC()->cart->cart_contents as $key => $values ) {
            if( $values['data']->product_type == 'product_pack' ) {
                unset($gateways['dokan_paypal_adaptive']);
                break;
            } else {
                unset($gateways['paypal']);
                break;
            }
        }
        return $gateways;
    }

    Note: You must have to enable both paypal and paypal adaptive payment with those api key.

    #44072

    Tracy
    Member
    Post count: 134

    thank you…
    where do i put that within the function file? i tried 2 places, and it threw off the system.

    #44120

    Nayem
    Moderator
    Post count: 6480

    Hello Tracy,

    You can insert those code in your child theme's function.php file.

Viewing 10 posts - 16 through 25 (of 25 total)

The topic ‘Subscription Recurring NOT working’ is closed to new replies.