Vendor buyer direct payment ?

We're shifting our Forum based support to a more dedicated support system!

We'll be closing our Forum support from 10th June, 2020 and move to Email Support assistance.

  • If you are a WCFM premium add-ons user, contact us- here
  • Want to know more before buying our add-ons? Send Pre sale queries- here
  • If you are a WCFM free user, please open a support ticket at WordPress.org
  • For WCFM App related queries, reach us- here
From now the forum will be read-only!

Viewing 33 reply threads
  • Author
    Posts
    • #67374
      Avatartodor.ganchev
      Participant

      Is it possible to setup WCFM Marketplace in such a way that vendors will get paid directly by customers, and only pay the site owner a monthly membership fee for being a member and selling through the marketplace?

    • #67494
      WCFM ForumWCFM Forum
      Keymaster

      Hi,

      This is now possible only using Stripe.

      Between, which payment gateway you want to use?

      Thank You

    • #67580
      AvatarCommunityCorals
      Participant

      You guys are working on a custom development for me to achieve what todor is asking for. I still wait for finalization. If all agree I could post snippet once finished.

      Thanks
      Dominique

    • #67632
      Avatartodor.ganchev
      Participant

      Stripe is not available for Bulgaria, so with regard to your question: I think of using PayPal because it is the most popular payment gateway, but I am ready to accept any reasonable suggestion.
      I want to know if it is possible to achieve the thing I am asking for with to a custom development?

    • #67884
      WCFM ForumWCFM Forum
      Keymaster

      Hi,

      PayPal has “Adaptive API” for the purpose, but they have now deprecated that.

      Now, PayPal has a new API – Marketplace API, but PayPal only provided access for this to limited users.

      Are you able to get approval from PayPal for using this?

      Thank You

    • #67955
      Avatartodor.ganchev
      Participant

      I am not sure that I would get approval, so I could make a request. What am I suppossed to do if I get a negative answer? What are my options further?

    • #67956
      AvatarCommunityCorals
      Participant

      I tried to apply at Paypal with no response. Below 1M € paypal revenue chances aren´t good.

      I think with reverse withdrawal it would make a lot of sense to provide the payment model as it is done by ebay. At ebay the buyer directly pays to the vendor and ebay provides a bill for the commission without managing the payment and deducting commission instantly. I guess it is technically quite easy and would make a lot of sense also for other of your customers to impement a model like described below?

      “What I would like to do is just having cash-on-delivery option so direct payment from customer to vendor. To make this as handy as possible for the customer I would like to print the payment details and options the vendor provides directly on the order confirmation mail.”

      This way customer directly pays to vendor and admin can utilize reverse withdrawal to charge fees if required.


      @WCFM
      : Any update on that custom development?

    • #67961
      Avatartodor.ganchev
      Participant

      Thanks for your qick response.
      The payment model you have described is OK.
      Is it possible to get such custom development for me?
      Does WCFM Marketplace work with MangoPay?

    • #68338
      WCFM ForumWCFM Forum
      Keymaster

      HI,

      Is it possible to get such custom development for me?
      – Which payment gateway you want to use?

      Does WCFM Marketplace work with MangoPay?
      – Not yet

      Thank You

    • #68447
      Avatartodor.ganchev
      Participant

      I think of using PayPal, but if you have any reasonable suggestion I am ready to accept it.

    • #68933
      WCFM ForumWCFM Forum
      Keymaster

      Hi,

      OK, we can setup this using PayPal.

      But there will be few conditions –

      1. One order will contain only one vendor’s products
      2. Full amount will go into Vendor’s PayPal account, no split payment. You may track commission using “Reverse Withdrawal”
      3. Vendor’s PayPal account should be a business account

      Thank You

    • #68959
      AvatarCommunityCorals
      Participant

      May I ask if you guys are also working on my custom development described before? As I would like to allow orders from multiple vendors without paypal business account I think I would still go with providing payment details in order confirmation mail. So no Payment getaway required. You have the specifications and I got a first draft of the functionality but it was kind of basic. If you agree I could post the code here for you to understand the current state of the functionality.

      Thanks
      Dominique

    • #69725
      WCFM ForumWCFM Forum
      Keymaster

      @CommunityCorals, your solution was for “offline” payment. Just vendor’s payment details sharing with customer.

      But, I think this user looking for online payment from WC checkout directly into vendor’s PayPal account!

      Between, you may share that code, it’s your choice.

      Thank You

    • #69732
      AvatarCommunityCorals
      Participant

      @communitycorals, your solution was for “offline” payment. Just vendor’s payment details sharing with customer.

      Unfortunately, the code doesn´t provide the functionality we agreed upon. Its very basic and has still bugs I reported. When I asked to review and improve I haven´t got any response on my mails. Would be great if you could check if there may be any communication issue which caused this confusion? Anyways here a snippet for the other users to check if this maybe provides some help. I can also share a final version once I received revised code.

      Thanks
      Dominique

      add_action( ‘end_wcfm_vendor_settings’, function( $vendor_id ) {
      global $WCFM, $WCFMmp;
      $wcfm_customer_payment_options = get_user_meta( $vendor_id, ‘wcfm_customer_payment_options’, true );
      ?>
      <!– collapsible –>
      <div class=”page_collapsible” id=”wcfm_settings_form_min_order_amount_head”>
      <label class=”wcfmfa fa-cart-plus”></label>
      <?php _e(‘Customer Pay Option’, ‘wc-frontend-manager’); ?><span></span>
      </div>
      <div class=”wcfm-container”>
      <div id=”wcfm_settings_form_vendor_invoice_expander” class=”wcfm-content”>
      <?php
      $WCFM->wcfm_fields->wcfm_generate_form_field( array(
      “wcfm_customer_payment_options” => array(‘label’ => __(‘Payment Options’, ‘wc-frontend-manager’), ‘type’ => ‘textarea’, ‘class’ => ‘wcfm-textarea wcfm_ele wcfm_full_ele’, ‘label_class’ => ‘wcfm_title wcfm_ele wcfm_full_ele_title’, ‘value’ => $wcfm_customer_payment_options ),
      ) );
      ?>
      </div>
      </div>
      <div class=”wcfm_clearfix”></div>
      <!– end collapsible –>
      <?php
      }, 500 );

      add_filter( ‘wcfm_marketplace_settings_fields_general’, function( $setting_fields, $vendor_id ) {
      if( !wcfm_is_vendor() ) {
      $wcfm_customer_payment_options = get_user_meta( $vendor_id, ‘wcfm_customer_payment_options’, true );
      $wcfm_customer_payment_options_field = array(
      “wcfm_customer_payment_options” => array(‘label’ => __(‘Customer Payment Options’, ‘wc-frontend-manager’), ‘type’ => ‘textarea’, ‘class’ => ‘wcfm-textarea wcfm_ele’, ‘label_class’ => ‘wcfm_title wcfm_ele’, ‘value’ => $wcfm_customer_payment_options ),
      );
      $setting_fields = array_merge( $wcfm_customer_payment_options_field, $setting_fields );
      }
      return $setting_fields;
      }, 50, 2 );

      add_action( ‘wcfm_vendor_settings_update’, function( $vendor_id, $wcfm_settings_form ) {
      global $WCFM, $WCFMmp;
      if( isset( $wcfm_settings_form[‘wcfm_customer_payment_options’] ) ) {
      $wcfm_customer_payment_options = $wcfm_settings_form[‘wcfm_customer_payment_options’];
      update_user_meta( $vendor_id, ‘wcfm_customer_payment_options’, $wcfm_customer_payment_options );
      }
      }, 500, 2 );

      function wcfmmp_vendor_order_customer_payment_options( $order ) {
      global $WCFM, $WCFMmp;

      echo “<br /><br />”;
      echo “<h2 style=’font-size: 18px; color: #17a2b8; line-height: 20px;margin-top: 6px;margin-bottom: 10px;padding: 0px;text-decoration: underline;’>” . __( ‘Payment Details:’, ‘wc-frontend-manager-ultimate’ ) . “</h2>”;
      echo “<table width=’100%’ style=’width:100%;’><tbody>”;
      $order_items = $order->get_items( apply_filters( ‘woocommerce_purchase_order_item_types’, ‘line_item’ ) );
      foreach ( $order_items as $item_id => $item ) {
      $product_id = $item->get_product_id();
      $vendor_id = $WCFM->wcfm_vendor_support->wcfm_get_vendor_id_from_product( $product_id );
      if( !$vendor_id || !wcfm_is_vendor( $vendor_id ) ) continue;
      $wcfm_customer_payment_options = get_user_meta( $vendor_id, ‘wcfm_customer_payment_options’, true );
      if( !$wcfm_customer_payment_options ) continue;
      ?>
      <tr>
      <td colspan=”3″ style=”background-color: #eeeeee;padding: 1em 1.41575em;line-height: 1.5;font-weight:600;”><?php echo get_the_title( $product_id ); ?></td>
      <td colspan=”5″ style=”background-color: #f8f8f8;padding: 1em;”><?php echo wpautop($wcfm_customer_payment_options); ?></td>
      </tr>
      <?php
      }
      echo “</tbody></table>”;
      echo “<br /><br /><br /><br />”;
      }
      add_action( ‘woocommerce_order_details_after_order_table’, ‘wcfmmp_vendor_order_customer_payment_options’, 50 );
      add_action( ‘woocommerce_email_order_meta’, ‘wcfmmp_vendor_order_customer_payment_options’, 50 );

    • #70547
      AvatarCommunityCorals
      Participant

      HI, as I haven´t received any feedback it seems like I have to work with what you have send me?

      As I can´t wait I unfortunately have to proceed with current status. Is there any possibility to add an explanation to the customer Pay Option? No one will understand how this works.

      Also it would be great if the text field can be adjusted in size so that it is bigger.

      Thanks
      Dominique

      Attachments:
      You must be logged in to view attached files.
    • #70934
      WCFM ForumWCFM Forum
      Keymaster

      HI,

      As I can´t wait I unfortunately have to proceed with current status. Is there any possibility to add an explanation to the customer Pay Option? No one will understand how this works.

      – Well, that’s not a big deal. It’s off course possible to add explanation here for this setting tab.

      Pleas send me what you want to say here to your vendors, I will add that in code.

      Thank You

    • #70947
      AvatarCommunityCorals
      Participant

      Hello,

      text could be: “Please add your payment details as plain text like e.g. “Paypal: paypal.me/communitycorals/”. The customer gets this information as soon as order has been placed”.

      What I have to say is that the payment information is shown for every order item. My average is like 8 items per order so this is kind og messy and not what has been specified. Would be great if you could also check the code in regards of this issue. Actuually it was planned to print the information per vendor rather than order item.

      Below FYI the original specs:

      The paypal.me option also is supposed to be presented in the form of a button to the customer. This button should consist of the paypal.me url and the price of the order so that the amount the customer has to pay is directly populated in the paypal.me link.

      Specs:
      Here the seller can choose via checkmark which payment options he wants to offer. Fields that are available are:
      • Paypal.me (https://www.paypal.me/ is prepopulated and vendor can fill text field like e.g. CommunityCorals to generate https://www.paypal.me/communitycorals as a result.  This Link should be visible as button in the new order mail.
      • Bank account
      • Other payment options (Free text field)

      In every order confirmation I would provide an “area” where the payment details of a vendor can be found. If there are multiple vendors there should be multiple “areas”.
      Like
      Area 1 – Payment Details Vendor Korallensucht

      Bank Transfer
      Name: Korallensucht Peter Maier
      IBAN: DE 12094583405834

      Paypal
      Paypal address: domdeutz@arcor.de
      Pay via Paypal.me: (Button Pay now via paypal me  Link to e.g. https://www.paypal.me/dominiquedeutzmann/99,90)

    • #71825
      Avatartodor.ganchev
      Participant

      Hi,
      OK, we can setup this using PayPal.
      But there will be few conditions –
      1. One order will contain only one vendor’s products
      2. Full amount will go into Vendor’s PayPal account, no split payment. You may track commission using “Reverse Withdrawal”
      3. Vendor’s PayPal account should be a business account

      I accept the conditions….
      My colleague has sent you an email and now she is waiting for the code, please inform me if something else should be done

    • #72258
      WCFM ForumWCFM Forum
      Keymaster

      Yeah, we will send a custom addon for this.

      We are working on that addon.

      Thank You

    • #72406
      Avatarzoltan.b.feher
      Participant

      Hi Team,

      Exactly this is what I wanted to have with a customization request. Can you please share the add on with me as well?

      zoltan.b.feher (at) gmail.com

      Thank you!

    • #72420
      AvatarCommunityCorals
      Participant

      Hi, I would also like to test this functionality.

      Info@communitycorals.de

      Thanks Dominique

    • #72620
      Avataring.rapparini
      Participant

      This will be useful also for me…and I think for many others…so please develop this funcionality and let every store put his own paypal direct payment!!!

    • #73481
      AvatarCommunityCorals
      Participant

      Hi,

      I received this feedback from you:

      – Well, that’s not a big deal. It’s off course possible to add explanation here for this setting tab.

      Please send me what you want to say here to your vendors, I will add that in code.

      I send you the info and as I haven´t got any response I launched my website in US with the custom development you provided. Result is that the first vendor that signed up reported the payment field as a bug. That is very embarassing. Can you please help? I am willing to pay additional money but I need solution as we discussed before. Please contact me at info@communitycorals.de

      Thanks & BR
      Dominique

    • #73769
      Avatartodor.ganchev
      Participant

      Do you have any idea how long it would take to finish it completely?

      Regards,

    • #75260
      Avatartodor.ganchev
      Participant

      To CommunityCorals
      Hi, I want to ask you do you resolve the issue of payments on your site. I have a problem with payments and I do not know how to solve it.

      I would be grateful if you would give me any advice.

    • #75265
      AvatarCommunityCorals
      Participant

      Hey, actually I am also not that happy with my solution. As much as I love the WC Lovers they for some reason didn´t a good job on my payed custom work.

      You may add the above code to your functions php. This will give vendors the possibility of a free text field (was specified differently) where they can add their payment details like paypal.me bank details etc. When customer places an order the customer gets this information on thank you page and order confirmation mail. So customer can do a manual payment directly to vendor.

      BR
      Dominique

    • #75266
      AvatarCommunityCorals
      Participant

      P.S. unfortunately the payment details are shown many times on tahank you page and order confirmations. Once per order line item…

    • #75273
      Avatartodor.ganchev
      Participant

      Thanks for the quick reply, I’ll see the code

    • #75513
      WCFM ForumWCFM Forum
      Keymaster

      Hi,

      Here is that addon – https://drive.google.com/file/d/1eifxzAuNtKYjpE0K6E8fApb_ZVtx8-zH/view?usp=sharing

      You have to set Vendor’s PayPal API details from Vendor Setting -> Payment – https://ibb.co/gdwzGYZ

      Note: We will release this addon at WordPress repository soon! It will perform much better after WCFM Marketplace next update, specially for “withdrawal” as here withdrawal will be “Reverse Withdrawal” and this will be ensure automatically by this addon.

      Thank You

      • #75633
        AvatarCap Luis
        Participant

        There is an issue that should be reviewed!

        If I use more than one purchase payment gateway, when my customer purchases with my country gateway that is not PAYPAL. I need to transfer the money through the BANK, and if the customer uses paypal the provider will receive it directly to their paypal account.

        In this case in the vendor withdrawal options you should allow to choose more than one withdrawal form!

        So when the customer uses the other gateway that is not paypal I have the bank account data (for example) of the registered supplier. And when the customer uses paypal, the provider has their paypal account registered in the same way.

        You may wonder why use two gateways! In my country we often use the Barcode Invoice option for payment, and paypal does not offer this option. That’s why I need another gateway.

        In this case the supplier would have to have two forms of withdrawal at the same time, so I will have the bank details for when I need to send the money manually.

        • #75634
          AvatarCap Luis
          Participant

          There are many paypal gateways for woocommerce! Does this only work with the standard paypal gateway?

          I believe so but would like to confirm.

    • #75612
      Avatartodor.ganchev
      Participant

      Thank You guys,
      you’ve done a great job.
      last night i did tests in the sandbox and it works perfectly.
      Thank You

    • #75674
      Avatarmacnomo
      Participant

      Hey Guys,
      Just realized that PayPal doesn’t accept my country’s currency!

      You WC Lovers, mention Stripe!
      What’s the name of the Sripe service? Will it allow to charge by percentage or only a membership?

      Thanks

    • #75783
      WCFM ForumWCFM Forum
      Keymaster

      Hi,

      What’s the name of the Sripe service? Will it allow to charge by percentage or only a membership?

      – You may use Stripe for both the purpose – Membership payment and Commission Payout

      Thank You

    • #122404
      AvatarHenriette
      Participant

      I hope you don’t mind me bumping this topic but I tried above code and in Vendor Dashboard the field for Bank Details is visible.
      But when making a test purchase and choose Bank Payment the Bank details are not shown on the finish page and also not in the customer email.
      What am I doing wrong?

      Right now I use store invoice for this purpose so bank details are visible in the PDF that is sent in customer email.
      But first of all in Store Invoice I can not mark order as sent because the Shipping Tracking info is required and sometimes we don’t have this in my country (see other topic).

      But second I would rather have the Bank details directly shown in the customer email instead of an pdf attachment.

      Attachments:
      You must be logged in to view attached files.
    • #159971
      Avatarjoemark0008
      Participant
      This reply has been marked as private.
Viewing 33 reply threads
  • You must be logged in to reply to this topic.