Home Forums Theme Support Dokan Subscription Plan purchased but not enabling

This topic is: not resolved

This topic contains 53 replies, has 4 voices, and was last updated by  Nayem 3 years, 9 months ago.

Viewing 15 posts - 1 through 15 (of 54 total)
  • Author
    Posts
  • #54498

    Mubasher
    Member
    Post count: 97

    I have enabled subscription on my website and when sellers free trial plan expired and to upgrade to another plan seller purchased the second plan and order completed but sellers new plan has not been enabled. Still shows seller on previous plan and seller can select the purchased plan to buy again when already purchased.

    #54564

    Nayem
    Moderator
    Post count: 6480

    Hello Mubasher,

    Which payment gateway are you using?

    #54566

    Mubasher
    Member
    Post count: 97
    This reply has been marked as private.
    #54567

    Nayem
    Moderator
    Post count: 6480

    Hello Mubasher,

    Please make sure that you have got the IPN confirmation from PayPal. After getting this IPN confirmation your seller will be able to use the subscription package.

    Thanks.

    #54577

    Mubasher
    Member
    Post count: 97

    yes I have the IPN given by Paypal which I have enabled in the paypal adaptive section. with regards to my subscription plan problem it was paid using standard paypal so the payment part is not the issue. the subscription is not being enabled after payment? you may check by logging in hence why I gave you my details.

    #54582

    Nayem
    Moderator
    Post count: 6480

    Hello Mubasher,

    I saw that your sub pack is recurring. You can not use PayPal adaptive payment to purchaseWe 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. recurring payment. You have to use Normal paypal account to purchase recurring payment.

    #54675

    Mubasher
    Member
    Post count: 97
    This reply has been marked as private.
    #54687

    Nayem
    Moderator
    Post count: 6480

    Hello Mubasher,

    Please provide your login details and FTP details by using this form: http://wedevs.com/provide-login-details/. Our developer will work for this.

    Thank you ๐Ÿ™‚

    #54731

    Mubasher
    Member
    Post count: 97

    I have sent the details. Please let me know if any issues. Thankyou.

    #54735

    Nayem
    Moderator
    Post count: 6480

    Hello,

    I got your details and I have forwarded this to our developer team. They will fix this as soon as possible.

    Thanks.

    #54840

    Mubasher
    Member
    Post count: 97

    Is this corrected/fixed as not had no response?

    #54877

    Nayem
    Moderator
    Post count: 6480

    Hello Mubasher,

    We will check this today. After finishing our work I will inform you. Please keep patience.

    Thanks.

    #54883

    Nayem
    Moderator
    Post count: 6480

    Your FTP is not working. Please provide your correct details.

    #54891

    Mubasher
    Member
    Post count: 97
    This reply has been marked as private.
    #54892

    Nayem
    Moderator
    Post count: 6480

    You problem has been fixed. Please check and let me know.

    Thanks.

Viewing 15 posts - 1 through 15 (of 54 total)

The topic ‘Subscription Plan purchased but not enabling’ is closed to new replies.