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.
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.registra(
nombre='Eduardo',
apellidoPaterno='Salvador',
apellidoMaterno='Hernández',
rfcCurp='rfcrfc',
cuenta='646180110400000007',
)
orden = client.ordenes.alta(
institucionContraparte='40072',
monto=1.2,
nombreBeneficiario='Ricardo Sanchez',
tipoCuentaBeneficiario=40,
cuentaBeneficiario='072691004495711499',
conceptoPago='Prueba',
cuentaOrdenante='646180110400000007',
)
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.0b0.tar.gz
(6.3 kB
view hashes)