Home Forums Theme Support Dokan Subscription Errors

This topic is: not resolved

This topic contains 5 replies, has 2 voices, and was last updated by  Nayem 3 years, 10 months ago.

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #53976

    Wayne
    Member
    Post count: 22

    We are encountering subscription errors when a client pays for a package – their account is not being activated to upload images.

    #54014

    Nayem
    Moderator
    Post count: 6480

    Hello Wayne,

    Which payment gateway you are using? Is that subscription pack is recurring?

    Thanks.

    #54017

    Wayne
    Member
    Post count: 22

    Yes recurring payments and Paypal Adaptive payments. We have dokan subscription and have changed some of the packages. The old packages worked – the new packages (even one-time payment) do not activate the subscription for the seller.

    #54032

    Nayem
    Moderator
    Post count: 6480

    Hello Wayne,

    In Paypal Adaptive payment you can not use recurring payment system. You have to use Paypal. But there is solution-

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

    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.

    #54095

    Wayne
    Member
    Post count: 22

    We also have an issue with coupons showing and error – that the coupon has expired no matter what settings we use. Is there guidance for this issue as well?

    We will try the code and let you know if that resolves the issue. It seems there is a trigger that is not allowing the subscription to activate within the sellers account.

    #54220

    Nayem
    Moderator
    Post count: 6480

    Hello Wayne,

    For coupon issue- We do not have any issue in our latest version 2.3. Please make sure that you are using the latest version of Dokan plugin.

    Thanks.

Viewing 6 posts - 1 through 6 (of 6 total)

The topic ‘Subscription Errors’ is closed to new replies.