Solution:
I have an alternate solution. I got the same problem because I have woocommerce gateway stripe and dokan plugin both.
Go to woocommerce -> setting and then Payments tab. select “Enable Payment Request Buttons (Apple Pay/Chrome Payment Request API) option to enable it.
Then you will not get such an error on the checkout page.
If you don’t want the payment request button then you can hide the payment request button on the product page by the below code to your active theme’s functions.php file.
add_filter('wc_stripe_hide_payment_request_on_product_page', '__return_true');
You can hide the payment request button from the cart page by the below code to your active theme’s functions.php file.
function remove_stripe_apple_pay_button_on_cart() {
remove_action( 'woocommerce_proceed_to_checkout', array( WC_Stripe_Payment_Request::instance(), 'display_payment_request_button_html' ), 1 );
remove_action( 'woocommerce_proceed_to_checkout', array( WC_Stripe_Payment_Request::instance(), 'display_payment_request_button_separator_html' ), 2 );
}
add_action( 'init', 'remove_stripe_apple_pay_button_on_cart', 1 );
If you want to show the payment request button on the checkout page then add the below code to your active theme’s functions.php file
add_filter('wc_stripe_show_payment_request_on_checkout', '__return_true');