Viewing 5 replies - 1 through 5 (of 5 total)
  • Moderator bcworkz

    (@bcworkz)

    Integrating with a POS system could prove to be difficult. Unless there is already an existing plugin for the purpose, it’d have to be custom coded. Even then it could be difficult. Ideally there’d be some sort of API through which your code could query for needed data. The nature of POS systems keeps them from being openly accessible. Any sort of communication (if at all possible) likely requires some sort of security key exchange.

    Thread Starter pseudogeek1

    (@pseudogeek1)

    Bonjour,
    c’est quoi le démarche pour travailler avec API !

    Merci pour votre réponse.
    Cordialement.

    Moderator bcworkz

    (@bcworkz)

    It depends on the POS system. On the WP side we can utilize the WP_Http class to make HTTPS requests to the POS. The POS would respond with appropriate structured data which we can use in WP. It works the other way as well, we can POST structured data over HTTPS and the POS does something with the data.

    If an API is an option at all is something to ask the POS vendor. WP is open source and fully extensible, so some sort of solution should be possible on the WP end. The capabilities of the POS will be the limiting factor.

    Thread Starter pseudogeek1

    (@pseudogeek1)

    Bonjour,
    Comment je peut utiliser WP_HTTp classe pour faire des requêtes HTTPS au point de vente pour la gestion de stock !
    Merci pour votre réponse.
    Cordialement.

    Moderator bcworkz

    (@bcworkz)

    It depends on what sort of requests the POS needs. A typical GET request:

    	$url = 'https://my-pos.example.com/rest-api/?query=foo&string=bar';
    	$http = new WP_Http();
    	$response = $http->get( $url );

    $http can be reused for multiple requests as long as it’s in scope.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Acceo Smart Vendor’ is closed to new replies.