Metadata-Version: 2.1
Name: stpmex
Version: 1.0.0
Summary: Integration to stpmex.com
Home-page: https://github.com/cuenca-mx/stpmex-python
Author: Cuenca
Author-email: dev@cuenca.io
License: UNKNOWN
Description: # STP client python3 client library
        
        [![Build Status](https://travis-ci.com/cuenca-mx/stpmex-python.svg?branch=master)](https://travis-ci.com/cuenca-mx/stpmex-python)
        [![Coverage Status](https://coveralls.io/repos/github/cuenca-mx/stpmex-python/badge.svg?branch=master)](https://coveralls.io/github/cuenca-mx/stpmex-python?branch=master)
        [![PyPI](https://img.shields.io/pypi/v/stpmex.svg)](https://pypi.org/project/stpmex/)
        
        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
        
        ``` Python
        import stpmex
        ```
        
        Obtener la llave PEM
        
        ``` Python
        PKEY = 'prueba-key.pem'
        with open(PKEY) as fp:
            private_key = fp.read()
        ```
        
        Utilizar configure() para configurar las credenciales a utilizar
        
        ``` Python
        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
        `orden.registra()`.
        
        ``` Python
        orden = stpmex.Orden(
            conceptoPago='Prueba',
            institucionOperante=stpmex.types.Institucion.STP.value,
            cuentaBeneficiario='846180000400000001',
            institucionContraparte=846,
            monto=1234,
            nombreBeneficiario='Benito Juárez'
        )
        orden.registra()
        ```
        
        ## Subir a PyPi
        
        1. Actualizar version en `setup.py`
        1. Commit cambios a `setup.py` y empujarlos a `origin/master`
        1. `git tag -a <version> -m <release message>`
        1. `git push origin --tags`
        
        TravisCI subirá la versión actualizada a PyPi después de verificar que las
        pruevas pasen.
        
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Description-Content-Type: text/markdown
Provides-Extra: dev
