This page demonstrates the integration between AFAS InSite and your PHP installation. In the source of this PHP file index.php you can experience the ease of the integration with the PHP class file class.afasintegration.php.
The code on the right is the only source could you will need to make the integration possible. These are your configuration parameters:
<?php include_once ('class.afasintegration.php'); $config = array ( 'public_key' => 'YOUR_PUBLIC_KEY_HERE', 'private_key' => 'YOUR_PRIVATE_KEY_HERE', 'validate_ssl' => false, 'debug' => true ); $AFASintegration = new AFASintegration ( $_REQUEST, $config ); ?>
The data contained in this block represents the initial request that was sent by the originating AFAS InSite to your integration page. This is what the different parameters mean:
array(0) { }
The result we show here contains the response given by the originating AFAS InSite integration page after the postback has been sent after the initial trigger request above.
array(2) { ["status"]=> int(500) ["message"]=> string(27) "An unexpected error occured" }