PHP code example of omise / omise-php

1. Go to this page and download the library: Download omise/omise-php library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

omise / omise-php example snippets


     

     

define('OMISE_PUBLIC_KEY', 'pkey_test_***');
define('OMISE_SECRET_KEY', 'skey_test_***');

define('OMISE_API_VERSION', '2017-11-02');


ne('OMISE_PUBLIC_KEY', 'pkey_test_***');
define('OMISE_SECRET_KEY', 'skey_test_***');
define('OMISE_API_VERSION', '2017-11-02');

$account = OmiseAccount::retrieve();

echo $account['email']; // your email will be printed on a screen.
json
    {
      "mise-php": "dev-master"
      }
    }
    

    php composer.phar install