Skip to content
Python client library for STP (stpmex.com)
Python Makefile
Branch: master
Clone or download
matin and ricardo8990 Use local copies of XSD files (#42)
* last request is not necessary

* make xsd files local as well

* oops! typo in filename

* this test no longer makes sense

* test_forbidden_without_vpn

* make polish
Latest commit f707651 Aug 31, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
stpmex Use local copies of XSD files (#42) Aug 31, 2019
tests Use local copies of XSD files (#42) Aug 31, 2019
.envrc initial commit Jun 11, 2018
.gitignore make consistent Aug 5, 2019
.travis.yml I'm not sure why coveralls needs this Aug 5, 2019
LICENSE add license Jul 17, 2019
Makefile setup stuff Aug 10, 2019
README.md fix typo in README Aug 10, 2019
setup.cfg make consistent Aug 5, 2019
setup.py Use local copies of XSD files (#42) Aug 31, 2019

README.md

STP python3.6+ client library

Build Status Coverage Status PyPI

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']
You can’t perform that action at this time.