pyflowcl


Namepyflowcl JSON
Version 1.2.1 PyPI version JSON
download
home_pagehttps://www.flow.cl/docs/api.html
SummaryCliente para comunicacion con flowAPI-3 de flow.cl
upload_time2023-07-25 20:32:05
maintainer
docs_urlNone
authorMario Hernandez
requires_python>=3.8.5,<4.0.0
licenseMIT
keywords plataforma de pagos pagos pagar cobrar ecommerce tarjetas credito debito redcompra webpay visa mastercard transbank
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Bienvenido a pyflowcl

Pyflowcl es una biblioteca de Python que proporciona una interfaz para interactuar con la API de Flow en Chile. Con pyflowcl, puedes realizar diversas operaciones, como crear pagos, obtener información de pagos, realizar reembolsos y más.

[![Tests&Coverage](https://github.com/mariofix/pyflowcl/actions/workflows/tests_coverage.yml/badge.svg?branch=main)](https://github.com/mariofix/pyflowcl/actions/workflows/tests_coverage.yml)
[![Codacy Badge](https://app.codacy.com/project/badge/Grade/7254d825df2d4292bf68563548d41f64)](https://app.codacy.com/gh/mariofix/pyflowcl/dashboard?utm_source=gh&utm_medium=referral&utm_content=&utm_campaign=Badge_grade)
[![Codacy Badge](https://app.codacy.com/project/badge/Coverage/7254d825df2d4292bf68563548d41f64)](https://app.codacy.com/gh/mariofix/pyflowcl/dashboard?utm_source=gh&utm_medium=referral&utm_content=&utm_campaign=Badge_coverage)
[![pre-commit.ci status](https://results.pre-commit.ci/badge/github/mariofix/pyflowcl/main.svg)](https://results.pre-commit.ci/latest/github/mariofix/pyflowcl/main)
![PyPI](https://img.shields.io/pypi/v/pyflowcl)
![PyPI - Python Version](https://img.shields.io/pypi/pyversions/pyflowcl)
![PyPI - Implementation](https://img.shields.io/pypi/implementation/pyflowcl)
![PyPI - License](https://img.shields.io/pypi/l/pyflowcl)
![PyPI - Status](https://img.shields.io/pypi/status/pyflowcl)


## Instalación

Para instalar pyflowcl, asegúrate de tener Python y pip instalados. Luego, puedes instalar la biblioteca utilizando pip:

```shell
pip install pyflowcl
```

## Uso Básico

Aquí hay un ejemplo básico de cómo usar pyflowcl para crear un pago:

```shell
from pyflowcl import FlowAPI
from pyflowcl.utils import genera_parametros

api = FlowAPI(api_key="tu llave flow", api_secret="tu secreto flow")
parametros = {
    "apiKey": api.api_key,
    "amount": 10000,
    "currency": "CLP",
    "subject": "Ejemplo de Pago",
    "email": "correo@example.com",
    "url_confirmation": "https://mi-sitio.com/confirmacion",
}
pago = api.objetos.call_payment_create(parameters=genera_parametros(parametros, api.api_secret))
print(pago)
> { "flowOrder": 123456, "url": "https://www.flow.cl/app/pay.php", "token": "tok_123456" }

# Obtiene la URL de pago
url_pago = pago.get("url")
token_pago = pago.get("url")
print(f"URL de pago: {url_pago}?token={token_pago}")
```

## Documentación

Para obtener más información sobre cómo usar pyflowcl y todas las funcionalidades disponibles, consulta la documentación completa en [https://mariofix.github.io/pyflowcl](https://mariofix.github.io/pyflowcl).

## Contribuir

¡Tú contribución es bienvenida! Si encuentras errores, tienes sugerencias o deseas agregar nuevas características, por favor, crea un problema o envía una solicitud de extracción en el repositorio de GitHub: [Repositorio de pyflowcl](https://github.com/mariofix/pyflowcl).

## Licencia

Pyflowcl se distribuye bajo la Licencia MIT. Consulta el archivo [LICENSE](https://github.com/mariofix/pyflowcl/blob/main/LICENSE) para obtener más información.


            

Raw data

            {
    "_id": null,
    "home_page": "https://www.flow.cl/docs/api.html",
    "name": "pyflowcl",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.8.5,<4.0.0",
    "maintainer_email": "",
    "keywords": "plataforma de pagos,pagos,pagar,cobrar,ecommerce,tarjetas,credito,debito,redcompra,webpay,visa,mastercard,transbank",
    "author": "Mario Hernandez",
    "author_email": "yo@mariofix.com",
    "download_url": "https://files.pythonhosted.org/packages/da/6c/08ac17ba357515374013473585e5d728dc1fea6438f92e0bc177e5966560/pyflowcl-1.2.1.tar.gz",
    "platform": null,
    "description": "# Bienvenido a pyflowcl\n\nPyflowcl es una biblioteca de Python que proporciona una interfaz para interactuar con la API de Flow en Chile. Con pyflowcl, puedes realizar diversas operaciones, como crear pagos, obtener informaci\u00f3n de pagos, realizar reembolsos y m\u00e1s.\n\n[![Tests&Coverage](https://github.com/mariofix/pyflowcl/actions/workflows/tests_coverage.yml/badge.svg?branch=main)](https://github.com/mariofix/pyflowcl/actions/workflows/tests_coverage.yml)\n[![Codacy Badge](https://app.codacy.com/project/badge/Grade/7254d825df2d4292bf68563548d41f64)](https://app.codacy.com/gh/mariofix/pyflowcl/dashboard?utm_source=gh&utm_medium=referral&utm_content=&utm_campaign=Badge_grade)\n[![Codacy Badge](https://app.codacy.com/project/badge/Coverage/7254d825df2d4292bf68563548d41f64)](https://app.codacy.com/gh/mariofix/pyflowcl/dashboard?utm_source=gh&utm_medium=referral&utm_content=&utm_campaign=Badge_coverage)\n[![pre-commit.ci status](https://results.pre-commit.ci/badge/github/mariofix/pyflowcl/main.svg)](https://results.pre-commit.ci/latest/github/mariofix/pyflowcl/main)\n![PyPI](https://img.shields.io/pypi/v/pyflowcl)\n![PyPI - Python Version](https://img.shields.io/pypi/pyversions/pyflowcl)\n![PyPI - Implementation](https://img.shields.io/pypi/implementation/pyflowcl)\n![PyPI - License](https://img.shields.io/pypi/l/pyflowcl)\n![PyPI - Status](https://img.shields.io/pypi/status/pyflowcl)\n\n\n## Instalaci\u00f3n\n\nPara instalar pyflowcl, aseg\u00farate de tener Python y pip instalados. Luego, puedes instalar la biblioteca utilizando pip:\n\n```shell\npip install pyflowcl\n```\n\n## Uso B\u00e1sico\n\nAqu\u00ed hay un ejemplo b\u00e1sico de c\u00f3mo usar pyflowcl para crear un pago:\n\n```shell\nfrom pyflowcl import FlowAPI\nfrom pyflowcl.utils import genera_parametros\n\napi = FlowAPI(api_key=\"tu llave flow\", api_secret=\"tu secreto flow\")\nparametros = {\n    \"apiKey\": api.api_key,\n    \"amount\": 10000,\n    \"currency\": \"CLP\",\n    \"subject\": \"Ejemplo de Pago\",\n    \"email\": \"correo@example.com\",\n    \"url_confirmation\": \"https://mi-sitio.com/confirmacion\",\n}\npago = api.objetos.call_payment_create(parameters=genera_parametros(parametros, api.api_secret))\nprint(pago)\n> { \"flowOrder\": 123456, \"url\": \"https://www.flow.cl/app/pay.php\", \"token\": \"tok_123456\" }\n\n# Obtiene la URL de pago\nurl_pago = pago.get(\"url\")\ntoken_pago = pago.get(\"url\")\nprint(f\"URL de pago: {url_pago}?token={token_pago}\")\n```\n\n## Documentaci\u00f3n\n\nPara obtener m\u00e1s informaci\u00f3n sobre c\u00f3mo usar pyflowcl y todas las funcionalidades disponibles, consulta la documentaci\u00f3n completa en [https://mariofix.github.io/pyflowcl](https://mariofix.github.io/pyflowcl).\n\n## Contribuir\n\n\u00a1T\u00fa contribuci\u00f3n es bienvenida! Si encuentras errores, tienes sugerencias o deseas agregar nuevas caracter\u00edsticas, por favor, crea un problema o env\u00eda una solicitud de extracci\u00f3n en el repositorio de GitHub: [Repositorio de pyflowcl](https://github.com/mariofix/pyflowcl).\n\n## Licencia\n\nPyflowcl se distribuye bajo la Licencia MIT. Consulta el archivo [LICENSE](https://github.com/mariofix/pyflowcl/blob/main/LICENSE) para obtener m\u00e1s informaci\u00f3n.\n\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Cliente para comunicacion con flowAPI-3 de flow.cl",
    "version": "1.2.1",
    "project_urls": {
        "Documentation": "https://mariofix.github.io/pyflowcl/",
        "Homepage": "https://www.flow.cl/docs/api.html",
        "Repository": "https://github.com/mariofix/pyflowcl"
    },
    "split_keywords": [
        "plataforma de pagos",
        "pagos",
        "pagar",
        "cobrar",
        "ecommerce",
        "tarjetas",
        "credito",
        "debito",
        "redcompra",
        "webpay",
        "visa",
        "mastercard",
        "transbank"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "dc529b6994db591877ef30369b885609f6957bdad4e93d5e90b2e57966a16564",
                "md5": "41e7a0cb10ab3cf6682805ef749ae07e",
                "sha256": "f4ba34808cb3bbcb2e6e6357bfb5ae67ac5f948d467a785563f5949309269489"
            },
            "downloads": -1,
            "filename": "pyflowcl-1.2.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "41e7a0cb10ab3cf6682805ef749ae07e",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8.5,<4.0.0",
            "size": 91162,
            "upload_time": "2023-07-25T20:32:03",
            "upload_time_iso_8601": "2023-07-25T20:32:03.903682Z",
            "url": "https://files.pythonhosted.org/packages/dc/52/9b6994db591877ef30369b885609f6957bdad4e93d5e90b2e57966a16564/pyflowcl-1.2.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "da6c08ac17ba357515374013473585e5d728dc1fea6438f92e0bc177e5966560",
                "md5": "6905c20cff53ee407c4a1f235cf3adb0",
                "sha256": "c0091deda6e0f6e038e1b600124082dd046543910722f760acd9ec0b5e06f208"
            },
            "downloads": -1,
            "filename": "pyflowcl-1.2.1.tar.gz",
            "has_sig": false,
            "md5_digest": "6905c20cff53ee407c4a1f235cf3adb0",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8.5,<4.0.0",
            "size": 86102,
            "upload_time": "2023-07-25T20:32:05",
            "upload_time_iso_8601": "2023-07-25T20:32:05.584222Z",
            "url": "https://files.pythonhosted.org/packages/da/6c/08ac17ba357515374013473585e5d728dc1fea6438f92e0bc177e5966560/pyflowcl-1.2.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-07-25 20:32:05",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "mariofix",
    "github_project": "pyflowcl",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "pyflowcl"
}
        
Elapsed time: 0.09483s