PHP code example of musheabdulhakim / paystack

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

    

musheabdulhakim / paystack example snippets


    composer 

    composer install
    

    git clone https://github.com/MusheAbdulHakim/Paystack.git
    

    composer install
    

    SECRET_KEY = "sk_test_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
    PUBLIC_KEY = "pk_test_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
    MERCHANT_EMAIL = "[email protected]"
    

        

        use Musheabdulhakim\Paystack\Paystack;

        

        

        use Musheabdulhakim\Paystack\Paystack;

        st_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx',
            'PUBLIC_KEY' => 'pk_test_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx',
            'MERCHANT_EMAIL' => '[email protected]'
        ]);
    
 php
    
 php
    
 php
    

$params = [
    // Your query parameters
];

$transation_total = $paystack->transaction->total($params);