Sample file: config.php
See the chapter: Retrieving the keys :
REST API keys table
NUMBER | KEY NAME | Description |
---|---|---|
1 | User | For calls to REST Web Services |
2 | password | For calls to REST Web Services |
3 | Public key. | For creating a payment form in the Buyer's browser. |
4 | HMAC-SHA-256 Key | In order to verify the authenticity of the data returned during the payment form response in the browser |
Then, fill in the REST API keys in: config.php
<?php /** * Define configuration */ /* Username, password used for server to server web-service calls */ // define('USERNAME', 'KEY Number 1'); // define('PASSWORD', 'KEY Number 2'); /* publicKey and used by the javascript client */ // define('PUBLIC_KEY', 'KEY Number 3'); /* SHA256 key */ // define('SHA_KEY', 'KEY Number 4'); // DEMO SHOP define('USERNAME', '73239078'); define('PASSWORD', 'testpassword_SbEbeOueaMDyg8Rtei1bSaiB5lms9V0ZDjzldGXGAnIwH'); define('PUBLIC_KEY', '73239078:testpublickey_Zr3fXIKKx0mLY9YNBQEan42ano2QsdrLuyb2W54QWmUJQ'); define('SHA_KEY', 'VgbDd550wI6W1rwODGy56QAUkUQwIEdwXG5ziDUUC72BS');