Official PHP client for Orcuspay.
use OrcusPay\OrcusPayClient;
$orcus = new OrcusPayClient('access_key', 'secret_key');
$session = $orcus->createCheckoutSession([
'customer' => [
'name' => 'Test Customer',
'email' => 'test@example.com',
'phone' => '01700000000',
],
'success_url' => 'https://example.com/success',
'cancel_url' => 'https://example.com/cancel',
'line_items' => [[
'quantity' => 1,
'price_data' => [
'unit_amount' => 10000,
'product_data' => ['name' => 'Demo product'],
],
]],
'meta_data' => ['order_id' => '1001'],
]);
header('Location: ' . $session['url']);Default API URL: https://brain.orcuspay.com/api.