PHP code example of mhmfajar / php-payment-orchestrator

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

    

mhmfajar / php-payment-orchestrator example snippets




hmfajar\PaymentOrchestrator\PaymentOrchestrator;
use Mhmfajar\PaymentOrchestrator\Storage\PdoPaymentStore;

$config = ore(new PdoPaymentStore($pdo, $config['tables']));

$response = $payment->create(array(
    'order_id' => 'INV-001',
    'amount' => 150000,
    'customer_name' => 'Mhmfajar',
    'customer_email' => '[email protected]',
));

header('Location: ' . $response->getPaymentUrl());