Integration to stpmex.com
Project description
STP client python3 client library
Cliente para el servicio SOAP de STP
Demo wsdl: https://demo.stpmex.com:7024/speidemo/webservices/SpeiActualizaServices?wsdl
Requerimientos
Python v3 o superior.
Instalación
Se puede instalar desde Pypi usando
pip install stpmex
Test
Para ejecutar los test utlizando el archivo Makefile
$ make test
Uso básico
Comenzar configurando el cliente con las credenciales
import stpmex
Obtener la llave PEM
PKEY_ADD = '/Users/test/prueba-key.pem'
with open(PKEY_ADD) as fp:
private_key = fp.read()
Utilizar configure() para configurar las credenciales a utilizar
stpmex.configure(wsdl_path='https://demo.stpmex.com:7024/speidemo/webservices/SpeiActualizaServices?wsdl', empresa='PRUEBA', priv_key=private_key, priv_key_passphrase='12345678', prefijo=9999)
Para crear una nueva orden, crear una instancia de Orden y llamar registra()
orden = stpmex.Orden(conceptoPago='Prueba', institucionOperante=stpmex.types.Institucion.STP.value, cuentaBeneficiario='846180000400000001', institucionContraparte=846, monto=1234, nombreBeneficiario='Benito Juárez')
orden.registra()
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file stpmex-0.0.3.tar.gz.
File metadata
- Download URL: stpmex-0.0.3.tar.gz
- Upload date:
- Size: 6.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.2.0 requests-toolbelt/0.8.0 tqdm/4.25.0 CPython/3.7.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c758ece663fd5d93dcc7f4914c8cb5ab91b54c44e8880b827318173d6f1e402c
|
|
| MD5 |
63628aca55510353f23a62691c0ef8d7
|
|
| BLAKE2b-256 |
3ea7372305d4123c6bc1337059f8fbe6a784ac72ffa2bd27fd249d4daaaa8678
|
File details
Details for the file stpmex-0.0.3-py3-none-any.whl.
File metadata
- Download URL: stpmex-0.0.3-py3-none-any.whl
- Upload date:
- Size: 8.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.2.0 requests-toolbelt/0.8.0 tqdm/4.25.0 CPython/3.7.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
26254b4ea0f7a914a7959e71006e8d5361bc810e9700408d70c66152af0caa5f
|
|
| MD5 |
2b8077bd73dacdb8ccd464882aa2e043
|
|
| BLAKE2b-256 |
238e2bd5e9970562f814a9cd3cca23729dcca2e70a06b626bd5871669d917761
|