Search by

nowo-tech / openpay-php

HecFranco

Clean-room PHP SDK for the public Openpay REST API. PHP 8.3+ and FrankenPHP worker-safe (no static merchant credentials).

Package info

github.com/nowo-tech/OpenpayPhp

Documentation

Language:Shell

pkg:composer/nowo-tech/openpay-php

Fund package maintenance!

HecFranco

Statistics

Installs: 235

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

v1.0.2 2026-09-07 11:29 UTC

This package is auto-updated.

Last update: 2026-09-10 20:16:07 UTC


README

CI Packagist Version License PHP

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.2.

Independent implementation from public docs — not a redistribution of openpay/sdk. No process-wide static merchant credentials (FrankenPHP worker-safe).

FrankenPHP Friendly Worker Mode

Documentation

Quick start

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',
]));

Install

composer require nowo-tech/openpay-php:^1.0

Tests

composer test
composer test-coverage
make qa

License

MIT — 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.