Skip to content

OrcusHQ/orcuspay-php

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Orcuspay PHP

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.

About

Official PHP client for the Orcuspay API

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages