PHP code example of maatify / paystack

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

    

maatify / paystack example snippets


use Maatify\PayStack\PayStackController;

CRET_KEY__); // PayStack instance

$caller_object = $pay_stack->Transaction()->Initialize(); // transaction Initialize Example
$result = $caller_object
->SetOptional(__key__, __val__)
->SetOptional(__key__, __val__)
->Execute(__CUSTOMER_EMAIL__, __AMOUNT_IN_CENT__);

$caller_object = $pay_stack->Transaction()->Initialize(); // transaction Initialize Example
$result = $caller_object->SetAllOptionalAsArray([
__key1__ => __val1__, 
__key2__ => __val2__, 
])
->Execute(__CUSTOMER_EMAIL__, __AMOUNT_IN_CENT__);