Paypal Adaptive Vendor Payments

  • Posts: 20
  • Thank you received: 0
9 years 10 months ago #186082

-- HikaShop version -- : 2.3.5
-- HikaMarket version -- : 1.5.1
-- Joomla version -- : 3.3.6
-- PHP version -- : 5.4
-- Browser(s) name and version -- : Chrome 39.0.2171.95 m
-- Error-message(debug-mod must be tuned on) -- : Notice: Undefined property: stdClass::$tax_amount in /home/xxxxxxx/public_html/administrator/components/com_hikashop/classes/order.php on line 772

I've attempted quite a few different configurations for using the paypal adaptive plugin, including settings in the plugin as well as the HikaMarket configuration. I have two vendors set up, each having their own products, and have placed products for each vendor into one cart. The plugin is set up for debug and is successfully integrating with the sandbox site.

After clicking the Finish button at checkout, the debug info which is displayed shows the [0] => Array with the main paypal account receiving the full payment, with two vendor accounts ([1] => Array and [2] => Array) receiving the (split) paypal fees only. The product dollar amounts remain in the main store account and are not divided between the vendors.

I'm not really sure how to make this happen, and for some reason I'm not seeing it in the documentation.

Many thanks,
Steve

Last edit: 9 years 10 months ago by spark-. Reason: removed some site user info

Please Log in or Create an account to join the conversation.

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
9 years 10 months ago #186125

Hi,

I'll need more details about your paypal adaptive plugin configuration.
Because the values displayed in the debug depends on your configuration.
I recommend you the paypal adaptive documentation even if some elements are in a little contradiction with the API :
developer.paypal.com/docs/classic/adapti...ation-guide/APIntro/

in paypal adaptive, in chained payment the value for the primary vendor must be the full price ; his final price (his commission) will be the full price minus the vendor prices. In parallel payment or if the store is not the primary receiver, rules are different...
That's why it will be more than difficult for me to give you a clear answer without having more details about your configuration and what you want to achieve.

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

Please Log in or Create an account to join the conversation.

  • Posts: 20
  • Thank you received: 0
9 years 10 months ago #186524

Hi Jerome,

We're set up with the main store ("your vendor") having products and one vendor having products. The goal is to have one single storefront with a single payment interface, with the main vendor receiving the customer payment and distributing product price, fees, and shipping to vendors (where there is a second vendor in the cart). When there is only a vendor's items in the cart, the main store would receive the customer's payment and would forward the entire amount to the vendor. We're not doing any fees or commissions.

The vendor settings in HikaMarket>Configuration>Market Options>General Options are:
Limit vendors in cart = No limitation
Show only vendor payments = No
Split payment fees = Yes
Split shipping fees = Yes
Shipping per vendor = Yes

I've attached a screenshot of the response from the server after clicking the finish button. The first item in the cart is the vendor item, and the second item belongs to the main store. The $18.82 amount is correct, being the cart total with the paypal fees added, and the $0.58 for the vendor is the correct paypal fee for cart item #1. The $12.50 item price is not distributed to the vendor, only the Paypal fee is broken out. These amounts are being properly distributed between the paypal sandbox accounts.

My current Paypal Adaptive settings are:
Reverse all on error = No
Payment mode = Chained
Display mode = Redirect
Fee mode = Each Receiver
Put store as a secondary receiver = No
Debug = Yes

Please let me know if you need any additional information.

Best Regards,
Steve

Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
9 years 10 months ago #186525

Hi,

Can you please provide details about your commission/fess configuration.
I also want to know if the data stored in the order (for the sub order / vendor price) is correct.
You should see in your backend the sub orders for the vendors ; in this listing you will see the vendor price.

It will indicate if the problem is coming from the configuration of the fees or if the HikaMarket paypal adaptive plugin is sending incorrect data.

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

Please Log in or Create an account to join the conversation.

  • Posts: 20
  • Thank you received: 0
9 years 10 months ago #186555

Hi,

The "Taxes and fees options" are:
Market mode = Vendor paid directly
Vendor price with tax = Yes
Apply fees on shipping = Yes
Vendor payment content = Products

In "Market commissions mode", I have no commissions set up.

Attached is a screenshot of the vendor sub-order. The price and paypal fees are correct.

Thanks again,
Steve

Please Log in or Create an account to join the conversation.

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
9 years 10 months ago #186638

Hi,

There is no screenshot attached to your message

But thanks for the configuration details ; I will check how the plugin react when you do not have any commission.

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

Please Log in or Create an account to join the conversation.

  • Posts: 20
  • Thank you received: 0
9 years 10 months ago #186726

Please see the attached screenshot.

Steve

Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
9 years 10 months ago #186728

Hi,

Can you please change your main configuration in order to not have the "vendor paid directly" but "store paid directly".

Thanks


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

Please Log in or Create an account to join the conversation.

  • Posts: 20
  • Thank you received: 0
9 years 10 months ago #186783

Hi Jerome,

I made the change and processed another purchase with the same results. Please see the attached screenshot for this purchase.

Thanks,
Steve

Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
9 years 10 months ago #186830

Hi,

Thanks.
I'll reproduce your configuration and I will provide you a proper patch.

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

Please Log in or Create an account to join the conversation.

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
9 years 10 months ago #186887

Hi,

For what I tested, the problem is not coming from the Paypal Adaptive plugin but from the processing of the vendor total.
With the modification of the rule system in latest release, HikaMarket does not consider that "no rule" means "rule with no commission".
I have to fix that.

What you can do is to create just one fee rule in your HikaMarket with a "0" everywhere.
It means that your store won't have any commission on the sale and HikaMarket will find a correct rule when processing the orders.
For what I tested, it should fix your issue.

Near that, I'm working on improvements for the fee processing in order to have support of the "no rule found".

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

Please Log in or Create an account to join the conversation.

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
9 years 10 months ago #186907

Hi,

You can edit the file "administrator/components/com_hikamarket/classes/order.php" and replace

				} else {
					$ret -= $product_fee['fixed'];
				}
			}
		}
		unset($product);
By
				} else {
					$ret -= $product_fee['fixed'];
				}
			} else {
				$ret += $product->order_product_vendor_price;
			}
		}
		unset($product);
It should fix the issue when you do not have any commission/fee configured
(it fix the issue for my tests in my local websites).

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

Please Log in or Create an account to join the conversation.

  • Posts: 20
  • Thank you received: 0
9 years 10 months ago #186932

Hi Jerome,

I set up a commission with all amounts set to zero. The plugin is working correctly now.

Thanks for your support in working this out!

Best Regards,
Steve

Please Log in or Create an account to join the conversation.

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
9 years 10 months ago #186934

Hi,

You're welcome !
Thanks for your report and your feedback.

Kind regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

Please Log in or Create an account to join the conversation.

Moderators: Obsidev
Time to create page: 0.064 seconds
Powered by Kunena Forum