Questions about WCMP Paypal Marketplace

WCMp Stripe Marketplace

Resolved
Viewing 17 reply threads
  • Author
    Posts
    • #126581
      MaxenceTP
      Participant

      Hello,

      I noticed that with WCMP Paypal Marketplace, when a user makes an order, he sees in his paypal activity the different payments: https://prnt.sc/1qd3jxv

      I have several questions about this:
      – So this means that he will know the commissions that are taken and how much the seller is paid. Is it possible that he only sees the transaction to the Store of the order amount but that the payment is still separated?
      – Is it possible to show the amount of the transaction on the checkout page that will be paid to the admin, in this way https://prnt.sc/1qd3m62?
      – If the seller decides to refund the customer via paypal, will the admin also have to refund the transaction on his account?

      Thanks for your help

    • #127108

      Hi Maxence, thanks for getting in touch with us.

      Our replies are inline :

      – So this means that he will know the commissions that are taken and how much the seller is paid. Is it possible that he only sees the transaction to the Store of the order amount but that the payment is still separated?

      >> PayPal will always display how much a user has paid and to whom.
      I am sorry this all is carried out by PayPal.

      – Is it possible to show the amount of the transaction on the checkout page that will be paid to the admin, in this way https://prnt.sc/1qd3m62?

      >> We only display order related information to PayPal. Now PayPal API shows thoese data. So, can you please contact PayPal whether they have this support in their API

      – If the seller decides to refund the customer via paypal, will the admin also have to refund the transaction on his account?

      >> Yes, if there is a refund request, then yes admin needs to refund.

    • #127114
      MaxenceTP
      Participant

      Thanks for your answer, about “Is it possible to show the amount of the transaction on the checkout page that will be paid to the admin, in this way https://prnt.sc/1qd3m62?”

      That’s not related to paypal API, I just want to display to the customer the amount that he will pay to the admin (that he is not surprised by 2 payments on his paypal account), which is a value WCMP send to paypal. So WCMP know the value of the admin commission and I just want to show it on the checkout page

    • #127143

      @MaxenceTP, we calculate commission once an order is placed. But in order to display them before, requires good amount of custom code.

    • #127152
      MaxenceTP
      Participant

      It’s not possible to calculate it before the order is placed ? On the checkout page ?

    • #127214

      @MaxenceTP, yes that is possible.

      But that will require you to add all our commission calculations before the checkout via custom code. So as you can assume, this would require a huge amount of coding.

    • #127644
      MaxenceTP
      Participant

      Do you have a function that I can call to get the amount of the admin commission of a specific product ?

      In fact I need to have an array with the list of products in the basket, I do a foreach of all these products and I add in a variable the sum of all the admin commisions to have the total.
      That then I display on the checkout page. It doesn’t seem so complicated, maybe I’m wrong

    • #127687

      Hi,
      As per our default flow WCMp calculate commission after order. If you want to calculate the admin commission before order process then you have to add custom code for this.

      Let me know you you need any help,

      Regards,

    • #127690
      MaxenceTP
      Participant

      Yes that’s exactly what I want to do.
      Can you help me with that ?

    • #127708

      I am afraid there is no ready-made code for this. Hence you need to create this from your end.

    • #127732
      MaxenceTP
      Participant

      Do you have a function that I can call to get the amount of the admin commission of a specific product ?

    • #127753

      @MaxenceTP, for now WCMp calculated the commission once an order is placed.

      However, you can add the commission amount per product and then fetch the same for that product.

    • #127807
      MaxenceTP
      Participant

      Yes that what I want to do. How to get the commission amount of a product ?

    • #127931

      Maxence, you need to check how we save the commission per product in our classes/class-wcmp-product.php, and check ‘function process_vendor_data()’ line no 928. Here is our source code link : https://github.com/wcmarketplace/dc-woocommerce-multi-vendor

    • #128369
      MaxenceTP
      Participant

      Ok so it works when the commission is set on the product. But when the commission on the product is empty, how to get the commission of the vendor ?

      I have the variable $product, I need to find the $vendorID to get the meta

    • #128417

      Hi,
      You can find commission value by product id and vendor id using get_commission_amount this function. Here are the details https://github.com/wcmarketplace/dc-woocommerce-multi-vendor/blob/master/classes/class-wcmp-calculate-commission.php#L650

    • #128618
      MaxenceTP
      Participant

      It’s working thanks

    • #128636

      You are welcome!

Viewing 17 reply threads

The topic ‘Questions about WCMP Paypal Marketplace’ is closed to new replies.