mhmfajar / codeigniter-payment-orchestrator
CodeIgniter 4 adapter for PHP Payment Orchestrator.
Package info
github.com/mhmfajar/codeigniter-payment-orchestrator
pkg:composer/mhmfajar/codeigniter-payment-orchestrator
v0.1.0
2026-05-25 08:33 UTC
Requires
- php: ^7.3 || ^8.0
- codeigniter4/framework: ^4.0
- mhmfajar/php-payment-orchestrator: ^0.1
README
Register the package through Composer, publish or copy the config/migration into the application, then use the service:
$payment = service('paymentOrchestrator'); $response = $payment->create(array( 'order_id' => 'INV-001', 'amount' => 150000, 'customer_name' => 'Mhmfajar', 'customer_email' => 'mhmfajar@example.com', )); return redirect()->to($response->getPaymentUrl());
Callback:
$payload = $this->request->getJSON(true); if (! is_array($payload)) { $payload = $this->request->getPost(); } $response = service('paymentOrchestrator')->handleCallback($gateway, $payload);