Title: default payment Method
Last modified: May 3, 2020

---

# default payment Method

 *  Resolved [jlarisch](https://wordpress.org/support/users/jlarisch/)
 * (@jlarisch)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/default-payment-method-2/)
 * Hello there guys, first of all thank you for the awesome plugin! Its really rally
   great.
 * Today my only payment method is to terawallet (old woo wallet), so I set to auto
   withdraw when the order status change to concluded.
 * The problem is, because terawallet is my only withdraw I hide the settings->payment
   methods to the seller.
 * I want to know if the seller has to manually select terawallet as the prefer 
   payment method for this do work or if there is any way I can automatically set
   terawallet as the default payment method when the seller subscribe.
 * I know I can change manually the method payment for the seller but I wanted to
   be automatic.
 * thank you in advance for your time.

Viewing 14 replies - 1 through 14 (of 14 total)

 *  Plugin Author [WC Lovers](https://wordpress.org/support/users/wclovers/)
 * (@wclovers)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/default-payment-method-2/#post-12791831)
 * Hi,
 * Please add this snippet to your site –
 *     ```
       add_action( 'wcfmmp_new_store_created', function( $member_id, $wcfmmp_settings ) {
       	$vendor_data = get_user_meta( $member_id, 'wcfmmp_profile_settings', true );
       	$vendor_data['payment']['method'] = 'woo_wallet';
       	update_user_meta( $member_id, 'wcfmmp_profile_settings', $vendor_data );
       }, 100, 2 );
       ```
   
 * Add custom code(s) to your child theme’s functions.php
    In case you do not have
   child theme then add those using this plugin – https://wordpress.org/plugins/
   code-snippets/
 * Thank You
 *  Thread Starter [jlarisch](https://wordpress.org/support/users/jlarisch/)
 * (@jlarisch)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/default-payment-method-2/#post-12800682)
 * Hello there ! Thank you for the quick response.
 * That solution would work it if I didnt had to change manually the cliente role
   directy on wordpress, the reason:
 * I sell products for people and sometimes one buyer wants me to sell their products,
   causing a client to became a seller.
 * would not be possible for the admin to set de default payment method? There is
   another way?
 * I try to activate de function when I change the role from customer do store vendor,
   but without success:
 * add_action( ‘set_user_role’, ‘custom_user_change_function’, 10, 3 );
 * function custom_user_change_function( $user_id, $role, $old_roles )
    { if(in_array(‘
   customer’, $old_roles)) { add_action( ‘wcfmmp_new_store_created’, function( $
   member_id, $wcfmmp_settings ) { $vendor_data = get_user_meta( $member_id, ‘wcfmmp_profile_settings’,
   true ); $vendor_data[‘payment’][‘method’] = ‘woo_wallet’; update_user_meta( $
   member_id, ‘wcfmmp_profile_settings’, $vendor_data ); }, 100, 2 ); } }
 * can you help me out? I am not expert on WordPress but I try 🙂
 *  Plugin Author [WC Lovers](https://wordpress.org/support/users/wclovers/)
 * (@wclovers)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/default-payment-method-2/#post-12806106)
 * HI,
 * > would not be possible for the admin to set de default payment method? There
   > is another way?
 * – For which users you want to set this? Customer users?
 * Between, I have provided you that code for “vendor” users, on registration their
   preferred withdrawal payment method will auto-set “wallet”
 * Thank You
 *  Thread Starter [jlarisch](https://wordpress.org/support/users/jlarisch/)
 * (@jlarisch)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/default-payment-method-2/#post-12810937)
 * Hello again! I apreciate the code.
 * I Want to chance from customer tô store vendor, and this user tô have woowallet
   pre selected.
 * Thank again for your attention qnd Hope u are well
 *  Plugin Author [WC Lovers](https://wordpress.org/support/users/wclovers/)
 * (@wclovers)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/default-payment-method-2/#post-12822204)
 * HI,
 * Well, I have already gave you code for the purpose. On registration vendor’s 
   preferred payment method will be set “Wallet” –
 *     ```
       add_action( 'wcfmmp_new_store_created', function( $member_id, $wcfmmp_settings ) {
       	$vendor_data = get_user_meta( $member_id, 'wcfmmp_profile_settings', true );
       	$vendor_data['payment']['method'] = 'woo_wallet';
       	update_user_meta( $member_id, 'wcfmmp_profile_settings', $vendor_data );
       }, 100, 2 );
       ```
   
 * Thank You
 *  Thread Starter [jlarisch](https://wordpress.org/support/users/jlarisch/)
 * (@jlarisch)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/default-payment-method-2/#post-12939208)
 * Well my friend, I try everything and its not working 🙁
 * the client profile migrated to vendor profile stay with the option “Choose Withdrawal
   Payment Method”.
 * Any ideias?
 *  Plugin Author [WC Lovers](https://wordpress.org/support/users/wclovers/)
 * (@wclovers)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/default-payment-method-2/#post-12955423)
 * > the client profile migrated to vendor profile stay with the option “Choose 
   > Withdrawal Payment Method”.
 * – How you have migrated this?
 *  Thread Starter [jlarisch](https://wordpress.org/support/users/jlarisch/)
 * (@jlarisch)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/default-payment-method-2/#post-12962725)
 * Sorry, maybe I was not so clear:
 * “That solution would work it if I didnt had to change manually the cliente role
   directy on wordpress”
 * I mean to say that I go “User” tab inside wordpress admin, then I go on the user
   and select his role to be storevendor.
 *  Plugin Author [WC Lovers](https://wordpress.org/support/users/wclovers/)
 * (@wclovers)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/default-payment-method-2/#post-12972366)
 * Please don’t do that.
 * Many things will not work if you create/edit vendor users like that.
 *  Thread Starter [jlarisch](https://wordpress.org/support/users/jlarisch/)
 * (@jlarisch)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/default-payment-method-2/#post-12979198)
 * What is the correct way of transforming a user into a seller?
 *  Plugin Author [WC Lovers](https://wordpress.org/support/users/wclovers/)
 * (@wclovers)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/default-payment-method-2/#post-12988420)
 * Vendors can be created two ways –
 * 1. They can register themselves
    2. Admin can add from WCFM dashboard
 * You may enable vendor application approval as well. But then also approve application
   form WCFM dashboard.
 * Thank You
 *  Thread Starter [jlarisch](https://wordpress.org/support/users/jlarisch/)
 * (@jlarisch)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/default-payment-method-2/#post-12991250)
 * so no way i can migrate a user to became a seller?
 *  Plugin Author [WC Lovers](https://wordpress.org/support/users/wclovers/)
 * (@wclovers)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/default-payment-method-2/#post-12991366)
 * Sure, you may do so. But then vendor profile default setting will not set. You
   have to configure those manually form WCFM vendor manage page.
 *  Thread Starter [jlarisch](https://wordpress.org/support/users/jlarisch/)
 * (@jlarisch)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/default-payment-method-2/#post-13006146)
 * OK 🙁
 * didnt know would be so hard for the administrator to set default withdraw method.

Viewing 14 replies - 1 through 14 (of 14 total)

The topic ‘default payment Method’ is closed to new replies.

 * ![](https://ps.w.org/wc-multivendor-marketplace/assets/icon-256x256.gif?rev=2611991)
 * [WCFM Marketplace - Multivendor Marketplace for WooCommerce](https://wordpress.org/plugins/wc-multivendor-marketplace/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wc-multivendor-marketplace/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wc-multivendor-marketplace/)
 * [Active Topics](https://wordpress.org/support/plugin/wc-multivendor-marketplace/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wc-multivendor-marketplace/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wc-multivendor-marketplace/reviews/)

## Tags

 * [Terawallet](https://wordpress.org/support/topic-tag/terawallet/)
 * [woowallet](https://wordpress.org/support/topic-tag/woowallet/)

 * 14 replies
 * 2 participants
 * Last reply from: [jlarisch](https://wordpress.org/support/users/jlarisch/)
 * Last activity: [6 years, 2 months ago](https://wordpress.org/support/topic/default-payment-method-2/#post-13006146)
 * Status: resolved