PHP code example of syednasharudin / malakatpay-client

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

    

syednasharudin / malakatpay-client example snippets

$xslt
$config = [
    'api_key' => getenv('MALAKATPAY_API_KEY'),
    'signature_key' => getenv('MALAKATPAY_X_SIGNATURE')
];

return [
    'api_key' => env('MALAKATPAY_API_KEY'),
    'signature_key' => env('MALAKATPAY_X_SIGNATURE', null),
    'is_sandbox' => env('MALAKATPAY_SANDBOX', env('APP_ENV') != 'production'),
];


$response = MalakatPay::make()
    ->directPay()
    ->payee("COLLECTION CODE")
    ->getTransactions($direct_pay_payer_code);