Client library for stpmex.com
Project description
STP python3.6+ client library
Cliente para el servicio SOAP de STP
Requerimientos
Python v3.6 o superior.
Instalación
pip install stpmex
Test
make venv
source venv/bin/activate
make test
Uso básico
from stpmex import Client, Orden
client = Client(
empresa='TU_EMPRESA',
priv_key='PKEY_CONTENIDO',
priv_key_passphrase='supersecret'
)
orden = Orden(
institucionContraparte='40072',
monto=1.2,
nombreBeneficiario='Ricardo Sanchez',
tipoCuentaBeneficiario=40,
cuentaBeneficiario='072691004495711499',
conceptoPago='Prueba',
)
resp = client.registrar_orden(orden)
orden_id = resp['id']
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-2.0.4.tar.gz
(4.6 kB
view hashes)
Built Distribution
stpmex-2.0.4-py3-none-any.whl
(16.7 kB
view hashes)