Download the PHP package b2pagos/sdk without Composer
On this page you can find all versions of the php package b2pagos/sdk. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Vendor b2pagos
Package sdk
Short Description PHP SDK for integrating with the B2PAGOS payment gateway
License MIT
Package sdk
Short Description PHP SDK for integrating with the B2PAGOS payment gateway
License MIT
Please rate this library. Is it a good library?
Informations about the package sdk
B2PAGOS PHP SDK
SDK oficial en PHP para integrarse con la pasarela de pagos B2PAGOS de forma sencilla, segura y moderna.
✨ Características
- Crear transacciones (payment links)
- Autenticación vía JWT o credenciales (user/pass)
- Encriptación de tarjetas vía RSA
- Firmas HMAC para integridad
- 100% orientado a objetos y tipado fuerte
- Compatible con PHP 7.4+ y PHP 8.x
📦 Instalación
O si estás en desarrollo local:
🚀 Uso rápido
📊 Métodos disponibles
Método | Descripción |
---|---|
createTransaction() |
Crea un link de pago |
getUserToken() |
Login por email y password |
getJwt() |
Genera JWT con integrityKey |
EncryptionUtils::encryptRSA() |
Encripta datos con RSA |
EncryptionUtils::getPublicKey() |
Obtiene la clave pública desde API |
SignatureUtils::generateSignature() |
Firma HMAC-SHA256 de un payload |
🔐 Seguridad
- Las claves deben mantenerse privadas.
- En sandbox puedes usar
verifySSL => false
, en producción siempretrue
. - Tokens tienen expiración corta (30 segundos).
🔬 Requisitos
- PHP >= 7.4
- Extensiones:
curl
,openssl
,mbstring
,json
🤝 Contribuir
¡Pull requests bienvenidos! Crea un issue
primero si quieres discutir una funcionalidad o bug.
📝 Licencia
MIT License - B2Pagos (c) 2025
All versions of sdk with dependencies
PHP Build Version
Package Version
The package b2pagos/sdk contains the following files
Loading the files please wait ....