Square Payment & Stock Levels

  • Posts: 447
  • Thank you received: 20
1 day 11 hours ago #368224

Hi

I have a client using Square to accept payments. They use the Square system to manage stock. If an item is sold on the Joomla based site can it reduce the stock on the Square system or does it require custom development?

Thanks

David

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

  • Posts: 84233
  • Thank you received: 13675
  • MODERATOR
1 day 7 hours ago #368225

Hi,

Based on developer.squareup.com/docs/orders-api/what-it-does the Square API provides a way to update/read "catalog objects" . And when the Square plugin sends the data of the order to Square's API, it could potentially provide a reference to a catalog object for each product in the order. And then, Square would update the stock of the catalog object after the payment accordingly.
So for this to happen, it would require:
- that the Square plugin adds an input field for each product, so that you could provide the corresponding catalog object id. Or, if you can't easily get the catalog object id in your Square system, it would require implementing some extra endpoints of the Square API to get it, based on the product code (SKU) for example: stackoverflow.com/questions/62849375/how...ory-by-sku-using-php
- Once you have a way to link products in HikaShop with products in Square, you would have to edit each product to fill the catalog object id, unless it's possible to match them automatically (based on the product code, as I was saying).
Then, the plugin would have to add that information to the order when initiating the payment.

So, basically, with the current version of the Square plugin, this is not possible. But there is a way to do it with extra development in the Square plugin. If that's something you need, I would recommend checking with the developer of the plugin, TsukiDev, first to see what's possible: tsukidev.com/

The following user(s) said Thank You: davec

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

Time to create page: 0.060 seconds
Powered by Kunena Forum