Stripe connect: custom account
-
Hi, I am trying to create a custom gateway, your article on creating custom gateway has been very helpful so far.
The major issue that I have is that during the creation of “gateway setting field” under vendor’s setting panel (I used the format of the code attached)
…I needed to also create a file upload input field: please how do I create a file upload input field under vendors setting panel. And if possible I will appreciate if you can give me a list of the possible input fields that I can create.
Thanks in anticipation. I love you guy.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);The page I need help with: [log in to see the link]
- The topic ‘Stripe connect: custom account’ is closed to new replies.