PHP code example of payhook / sdk

1. Go to this page and download the library: Download payhook/sdk 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/ */

    

payhook / sdk example snippets


use Payhook\Sdk\Payhook;

$payhook = new Payhook('your_api_key');

$payhook->createPayment([
    'title' => 'Test payment',
    'currency' => 'USD',
    'amount' => Payhook::moneyToNanos('12.34'),
]);