L
L
Leonid2020-01-14 14:04:34
PHP
Leonid, 2020-01-14 14:04:34

How to set up synchronization of your php script with 1C Accounting?

We have: 1C Enterprise Accounting Edition 3.0, platform 8.x
In 1C, in the "Administration / Setting up an exchange with an online store" set:
5e1d9f40c1944892584116.png
My script so far looks like this:

<?php
$type = $_REQUEST['type'];
$mode = $_REQUEST['mode'];

file_put_contents('DEBUG.TXT', var_export($_REQUEST, true) . "\n\n---------\n\n", FILE_APPEND);

if ($mode == 'checkauth') {
  echo "success\nkey_name\n1234";
  exit();
}

echo 'success';
exit();

when you click on the "Check Connection" button, 1Ska successfully connects to my local site - everything is OK, the script logs an HTTP request from 1C.
But what to do next? How to set up auto update? How to manually call the update procedure / data synchronization with my script in 1C?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
L
Leonid, 2020-01-14
@easycode

And that's it, I found it: https://1cfresh.com/articles/data_sync_ea-estore
5e1da5279e494004198948.png

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question