WCFM Marketplace – Custom Payment Gateway
-
Hi!
I’m curretly using the WCFM Marketplace plugin to create a custom withdrawal method for my vendors. I can see the custom gateway name and credentials on the admin page, but NOT on the vendor page.I have used this tutorial:
https://wclovers.com/knowledgebase/wcfm-marketplace-custom-payment-gateway-developers-guide/This code of the tutorial does not work:
add_filter( ‘wcfm_marketplace_settings_fields_billing’, function( $vendor_billing_fileds, $vendor_id ) {
$gateway_slug = ‘brain_tree’;
$vendor_data = get_user_meta( $vendor_id, ‘wcfmmp_profile_settings’, true );
if( !$vendor_data ) $vendor_data = array();
$brain_tree = isset( $vendor_data[‘payment’][$gateway_slug][’email’] ) ? esc_attr( $vendor_data[‘payment’][$gateway_slug][’email’] ) : ” ;
$vendor_brain_tree_billing_fileds = array(
$gateway_slug => array(‘label’ => __(‘Brain Tree Email’, ‘wc-frontend-manager’), ‘name’ => ‘payment[‘.$gateway_slug.’][email]’, ‘type’ => ‘text’, ‘class’ => ‘wcfm-text wcfm_ele paymode_field paymode_’.$gateway_slug, ‘label_class’ => ‘wcfm_title wcfm_ele paymode_field paymode_’.$gateway_slug, ‘value’ => $brain_tree ),
);
$vendor_billing_fileds = array_merge( $vendor_billing_fileds, $vendor_brain_tree_billing_fileds );
return $vendor_billing_fileds;
}, 50, 2);Any help will be appreciated!!!
The page I need help with: [log in to see the link]
- The topic ‘WCFM Marketplace – Custom Payment Gateway’ is closed to new replies.