Problem with Stripe Connect plugin

  • Posts: 25999
  • Thank you received: 4004
  • MODERATOR
5 years 5 months ago #299339

Hello,

By using an adaptive payment plugin, you must be in "store paid directly".
Because if the vendor do not have a stripe account, the money will be sent to the store (so it can pay the vendor back manually).

Please provide more details so we can understand fully your problem.
But please, do only your tests in "store paid directly" ; that is the only valid mode.

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: 71
  • Thank you received: 3
5 years 5 months ago #299431

Because if the vendor do not have a stripe account, the money will be sent to the store (so it can pay the vendor back manually).

The situation where the vendor is not paid directly is the exception to the rule.
In most of the cases, the vendor will receive directly his money through Stripe.

My problem is that I can't use the vendor invoicing system with that setting "store paid directly".
I would like to invoice vendors for the amount of commission we take.
It is the case with the setting "vendor paid directly" but not with "store paid directly", for which invoices are for the full amount and from vendor to marketplace (right ?).

So I don't fully understand why you associate the setting "store paid directly" with the stripe payment, wouln't it be more logical in the other way around ?

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

  • Posts: 25999
  • Thank you received: 4004
  • MODERATOR
5 years 5 months ago #299432

Hello,

If one single vendor do not have a Stripe account (or a paypal account if you're using Paypal Adaptive) ; when it comes to the payment, where the plugin would sent the money of that vendor ?

I told you : "By using an adaptive payment plugin, you must be in store paid directly." for a reason and the "must" is also there for a reason.
It is not possible to to the inverse ; otherwise it would mean that some money could be lost without any possibility to retrieve it.

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: 71
  • Thank you received: 3
5 years 5 months ago #299646

Hello,

It could be useful to have a process to avoid this problem, and treat it as an anomaly :-)

For example, Hikamarket may prevent, as soon as the stripe payment mode is activated, any order / sale to be created for the vendor (or vendor products to be activated) until he has connected his stripe account,, what do you think ?

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

  • Posts: 25999
  • Thank you received: 4004
  • MODERATOR
5 years 5 months ago #299648

Hello,

"Vendor paid directly" is a mode that you need to use only with manual payment method ; such as "collect on delivery".
So I'm afraid that I do not understand your request.

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: 71
  • Thank you received: 3
5 years 2 months ago #303570

Hello Jerome,

I have a problem with hikamarket and certainly more precisely with the stripe payment plugin : two payment made by the customer for the same order. It happened for the last two orders.

I checked with Stripe support : the problem comes from our side, the logs show that the charge requests for both payment came from hikashop

They told me about the idempotency functionality in Stripe that can help reduce the risk of these types of issues : stripe.com/docs/api/idempotent_requests

Thanks for your help !

Marina

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

  • Posts: 25999
  • Thank you received: 4004
  • MODERATOR
5 years 2 months ago #303572

Hello,

See : www.hikashop.com/forum/payment-methods/8...plicate-charges.html

As explained in the other thread ; the fact that the form is submitted twice will generate two call to the HikaShop payment notification and two calls to the Stripe Charge processing.
The plugin cannot perform two calls to the Stripe system if the notification is call just one time.

Thus, in the view "stripconnect_end.php" (that you can find in the plugin folder), you can replace

  event.preventDefault();
By
  event.preventDefault();
  if(form.tokenCreation) return;
  form.tokenCreation = true;
And also replace
      errorElement.textContent = result.error.message;
By
      errorElement.textContent = result.error.message;
      form.tokenCreation = false;
It will use a variable in the payment form to avoid the multiple submission (and multiple token creation).

The usage of "idempotent" is a possibility but I would prefer to not use it.
Since the plugin is currently evolving to support more case and integrate with the checkout payment block ; such double validation won't be possible anymore with that new integration.

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.
Last edit: 5 years 2 months ago by Jerome.

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

  • Posts: 71
  • Thank you received: 3
5 years 2 months ago #303664

Thanks a lot for your answer Jerome. and sorry for not having searched before asking :whistle:

Should I test this mod before apply it ? (I am in live mode)

Many thanks

Marina

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

  • Posts: 25999
  • Thank you received: 4004
  • MODERATOR
5 years 2 months ago #303671

Hello,

The modification affect few lines and it's just some JavaScript.
For sure I would recommend you to perform a copy of the "stripconnect_end" file and to test the checkout final screen.
But the patch is really small and I tested it in my local website.

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.069 seconds
Powered by Kunena Forum