taiwanleaftea/cecahmac

Implementation of the new encryption algorithm for CECABANK payment gateway

Maintainers

Package info

github.com/taiwanleaftea/cecahmac

pkg:composer/taiwanleaftea/cecahmac

Statistics

Installs: 0

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

1.0.3 2025-12-05 10:41 UTC

This package is auto-updated.

Last update: 2026-03-05 11:10:57 UTC


README

Implementation of the new encryption algorithm for CECABANK payment gateway

Installation

Run the following commands from your terminal:

composer require taiwanleaftea/cecahmac

Usage

use TLT\Cecahmac\Hmac;

// Create request to sign
$signature = 'request, as described in the documentation';

// Create encryptor
$encryptor = new Hmac(32bytes_encryption_key_from_bank_config);

// Sign the request. The signature is in base64 and ready to POST
$firma = $hmac->makeSignature($signature, operation_number);