Client library for stpmex.com
Project description
STP python3.6+ client library
Cliente para el servicio REST de STP
Requerimientos
Python v3.6 o superior.
Documentación de API
Instalación
pip install stpmex
Correr pruebas
make venv
source venv/bin/activate
make test
Uso básico
from stpmex import Client
client = Client(
empresa='TU_EMPRESA',
priv_key='PKEY_CONTENIDO',
priv_key_passphrase='supersecret',
)
cuenta = client.cuentas.alta(
nombre='Eduardo',
apellidoPaterno='Salvador',
apellidoMaterno='Hernández',
rfcCurp='rfcrfc',
cuenta='646180110400000007',
)
orden = client.ordenes.registra(
monto=1.2,
cuentaOrdenante=cuenta.cuenta,
nombreBeneficiario='Ricardo Sanchez',
cuentaBeneficiario='072691004495711499',
institucionContraparte='40072',
conceptoPago='Prueba',
)
cuenta.baja()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
stpmex-3.0.0rc1.tar.gz
(6.7 kB
view hashes)
Built Distribution
stpmex-3.0.0rc1-py3-none-any.whl
(10.2 kB
view hashes)
Close
Hashes for stpmex-3.0.0rc1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 54cfbefc79b5eb4793d9998dbaf14397ca4e6ee66f36fdc4473155953c6ee913 |
|
MD5 | 392345f7868e9196516775a11687af94 |
|
BLAKE2b-256 | e2137a377a2bad7b828458248199f5af516c9ada4e92dfae6af05cbe508a1762 |