Subscription Errors

This topic contains 5 reply and 2 voices, and was last updated by Nayem 8 years, 9 months ago
Viewing 5 Posts - 1 through 5 (of 5 total)
Author Posts
July 2, 2015 at 3:26 am 53976
Nayem We are encountering subscription errors when a client pays for a package - their account is not being activated to upload images.
July 2, 2015 at 12:12 pm 54014
Nayem Nayem

Hello Wayne,

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

Thanks.

July 2, 2015 at 12:18 pm 54017
Wayne Wayne

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.

July 2, 2015 at 12:54 pm 54032
Nayem Nayem

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.

July 2, 2015 at 10:26 pm 54095
Wayne Wayne

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.

July 4, 2015 at 2:00 pm 54220
Nayem Nayem

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 5 Posts - 1 through 5 (of 5 total)