• Resolved Naomi Nakashima

    (@ndnakashima)


    Hi.

    Right now we have Stripe Split Pay set up as our only Payment Gateway, and we have notices that vendors must connect with their Stripe account in order to get paid. But is there a way to actually make this required?

    In the store setup wizard, there is an option to skip connecting. And there doesn’t seem to be a way for us to see whether or not they have it set up before they start uploading new products to sell, and in testing we’ve come across some issues with payments for vendors without connected Stripe accounts (the payment still goes through, so the consumer experience is not interrupted, but the entire payment is sent to Admin’s Stripe and then we have to manually send it back to them and more fees are taken out for the extra transaction).

    Thank you

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author WC Lovers

    (@wclovers)

    HI,

    vendors must connect with their Stripe account in order to get paid. But is there a way to actually make this required?

    – Yeah, without this vendors can not paid out!

    Do you want to restrict vendors from adding products without Stripe connect?

    Thank You

    Thread Starter Naomi Nakashima

    (@ndnakashima)

    Hi!

    Yes, we want to restrict their ability to adding products until their Stripe account is connected.

    Thank you.

    Plugin Author WC Lovers

    (@wclovers)

    Hi,

    Please add this code to your child theme’s functions.php –

    add_filter( 'wcfm_is_allow_pm_add_products', function( $is_allow ) {
      if( wcfm_is_vendor() ) {
      	$vendor_id   = apply_filters( 'wcfm_current_vendor_id', get_current_user_id() );
      	$vendor_data = get_user_meta( $vendor_id, 'wcfmmp_profile_settings', true );
      	$payment_mode = isset( $vendor_data['payment']['method'] ) ? esc_attr( $vendor_data['payment']['method'] ) : '' ;
      	$stripe_user_id = get_user_meta( $vendor_id, 'stripe_user_id', true );
      	if( !$payment_mode || !$stripe_user_id ) {
      		wcfm_restriction_message_show( "Stripe account not yet setup!" );
      		$is_allow = false;
      	}
      }
    	return $is_allow;
    }, 750 );

    But this will work after WCFM next update.

    Thank You

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Make Payment Gateway Required?’ is closed to new replies.