All Projects → cornershop → python-tbk

cornershop / python-tbk

Licence: MIT license
Unofficial TBK Web Services Python SDK

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to python-tbk

Eclair Mobile
An Android wallet for the Lightning Network
Stars: ✭ 231 (+450%)
Mutual labels:  payments
yookassa-sdk-python
Python SDK for YooKassa Payments API
Stars: ✭ 31 (-26.19%)
Mutual labels:  payments
trener
A simple programming challenge for implementing a train station app
Stars: ✭ 28 (-33.33%)
Mutual labels:  chile
pinochet
Manuscript, data, and replication materials for the paper "Deaths and Disappearances in the Pinochet Regime: A New Dataset" (2019)
Stars: ✭ 18 (-57.14%)
Mutual labels:  chile
pos-android-sdk
A selection of APIs and associated samples that enables developers to build applications for different stages of the point of sale journey
Stars: ✭ 18 (-57.14%)
Mutual labels:  payments
killbill-stripe-plugin
Kill Bill plugin for Stripe
Stars: ✭ 16 (-61.9%)
Mutual labels:  payments
Ledgersmb
Repository for the LedgerSMB project -- web app for accounting & ERP
Stars: ✭ 222 (+428.57%)
Mutual labels:  payments
sdk-android
Add card payments from Zettle to your own app
Stars: ✭ 18 (-57.14%)
Mutual labels:  payments
afterpay
PHP Afterpay Integration exposing the Merchant and InStore APIs - Unsupported since April 2021
Stars: ✭ 12 (-71.43%)
Mutual labels:  payments
africastalking.Net
Africa's Talking API Wrapper for C#
Stars: ✭ 16 (-61.9%)
Mutual labels:  payments
ShareLoginPay
ThirdParty login,share and pay lib
Stars: ✭ 16 (-61.9%)
Mutual labels:  payments
awesome-bitcoin-cash
Bitcoin Cash projects & resources
Stars: ✭ 28 (-33.33%)
Mutual labels:  payments
omise-ruby
Omise Ruby Library
Stars: ✭ 38 (-9.52%)
Mutual labels:  payments
Pay Gateway
pay gateway. support alipay,wechatpay,unionpay,jdpay etc.
Stars: ✭ 247 (+488.1%)
Mutual labels:  payments
laravel-sibs-payments
Laravel library to communicate with SIBS - Open Payment Platform. The library includes payments: MBWAY, VISA, MASTER, AMEX, VPAY, MAESTRO, VISADEBIT, VISAELECTRON.
Stars: ✭ 30 (-28.57%)
Mutual labels:  payments
Breezmobile
Lightning Network mobile client
Stars: ✭ 225 (+435.71%)
Mutual labels:  payments
Far-From-Home
A cross-platform mobile developed using Flutter and Firestore for House Rental Application with integrated payment module
Stars: ✭ 27 (-35.71%)
Mutual labels:  payments
mollie-api-go
Golang wrapper for Mollie's REST API with full resource coverage.
Stars: ✭ 45 (+7.14%)
Mutual labels:  payments
subscribie
Collect recurring payments online - subscription payments collection automation
Stars: ✭ 36 (-14.29%)
Mutual labels:  payments
terms-dictionary
Simple definitions of terms, acronyms, abbreviations, companies, and projects related to financial services and Moov.
Stars: ✭ 48 (+14.29%)
Mutual labels:  payments

Unofficial TBK Web Services Python SDK

https://circleci.com/gh/cornershop/python-tbk/tree/master.svg?style=svg

Requirements

  • python: ~2.7, ^3.6
  • libxml2 >= 2.9.1
  • libxmlsec1 >= 1.2.14

🇬🇧

Installation

Just run:

$ pip install python-tbk

Usage

As simple as call (snakecased) webpay api methods:

>>> from tbk.services import WebpayService
>>> from tbk.commerce import Commerce
>>> from tbk import INTEGRACION
>>> commerce = Commerce(commerce_code, key_data, cert_data, tbk_cert_data, INTEGRACION)
>>> webpay = WebpayService(commerce)
>>> transaction = webpay.init_transaction(amount, buy_order, return_url, final_url)
>>> print(transaction['token'])
e87df74f7af4dcfdc1d17521b07413ff9a004a7b423dc47ad09f6a8166a73842

Conventions

This library use a snake cased naming convention for webservices and params for a more pythonic implementation. Every camelcased name in the webpay API was transformed to snakecase:

initTransaction(amount, buyOrder, returnURL, finalURL, sessionId)

became:

init_transaction(amount, buy_order, return_url, final_url, session_id)

Documentation

You can refer to http://www.transbankdevelopers.cl/?m=api for official API documentation. This library documentation is on the way.

Loggers

There are two levels of loggers:

tbk.services
tbk.soap

Specific service logger are defined by class name:

tbk.services.WebpayService

Bugs?

Issues are welcome at https://github.com/cornershop/python-tbk/issues

🇪🇸

Instalación

Ejecuta:

$ pip install python-tbk

Uso

Tan simple como llamar los métodos del API de Webpay (pero snakecased):

>>> from tbk.services import WebpayService
>>> from tbk.commerce import Commerce
>>> from tbk import INTEGRACION
>>> commerce = Commerce(commerce_code, key_data, cert_data, tbk_cert_data, INTEGRACION)
>>> webpay = WebpayService(commerce)
>>> transaction = webpay.init_transaction(amount, buy_order, return_url, final_url)
>>> print(transaction['token'])
e87df74f7af4dcfdc1d17521b07413ff9a004a7b423dc47ad09f6a8166a73842

Convenciones

La librería usa una convención de nombres snakecased para ser más pythonica. Cada nombre camelcased en el API de Webpay se transformó a snakecased:

initTransaction(amount, buyOrder, returnURL, finalURL, sessionId)

se traduce en:

init_transaction(amount, buy_order, return_url, final_url, session_id)

Documentación

La documentación oficial se encuentra disponible en http://www.transbankdevelopers.cl/?m=api. La documentación de esta librería está en desarrollo.

Loggers

Se encuentran definidos dos niveles de logger:

tbk.services
tbk.soap

El logger específico de un servicio está definido por su nombre de clase:

tbk.services.WebpayService

Testing cards / Tarjetas de prueba

Credit / Crédito

Marca VISA MASTERCARD
No de Tarjeta 4051885600446623 5186059559590568
Año Expiración Cualquiera Cualquiera
CVV 123 123
Resultado APROBADO RECHAZADO

Debit / Débito

  APRUEBA RECHAZA
TARJETA 4051885600446620 5186059559590560
RUT 11.111.111-1 11.111.111-1
PASSWORD 123 123
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].