⭐ Found this useful? Install from Packagist · Star on GitHub.
Clean-room PHP SDK for the public Openpay REST API. Namespace Nowo\Openpay\. License MIT. Release 1.0.0.
Independent implementation from public docs — not a redistribution of openpay/sdk. No process-wide static merchant credentials (FrankenPHP worker-safe).
- Installation
- Configuration
- Usage
- Upgrading
- Security
- Coverage
- FrankenPHP demo
- Spec-driven development
- Spec Kit
- GitHub CI
- Changelog
- Code of Conduct
use Nowo\Openpay\Client;
use Nowo\Openpay\Country;
use Nowo\Openpay\Credentials;
use Nowo\Openpay\Session;
$credentials = new Credentials(
merchantId: getenv('OPENPAY_MERCHANT_ID') ?: '',
privateKey: getenv('OPENPAY_PRIVATE_KEY') ?: '',
country: Country::Mx,
sandbox: true,
);
$session = new Session($credentials);
$customer = $session->run(static fn (Client $client) => $client->customers->create([
'name' => 'Demo',
'email' => 'demo@example.test',
]));composer require nowo-tech/openpay-php:^1.0composer test
composer test-coverage
make qaMIT — see LICENSE.
Independent clean-room client for the public Openpay REST API. Not a redistribution of openpay/sdk. “Openpay” is a trademark of its owners.
