Skip to content
forked from pedroburon/tbk

Python implementation of Transbank's Webpay protocol

License

Notifications You must be signed in to change notification settings

mbarrerar/tbk-1

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tbk

Build Status Coverage Status

Python implementation of Transbank's Webpay protocol. A port from ruby implementation http://github.com/sagmor/tbk.

Usage

payment = Payment(
    request_ip='123.123.123.123',
    commerce=mock.Mock(),
    success_url='http://localhost:8080/webpay/success/',
    confirmation_url='http://127.0.0.1:8080/webpay/confirmation/',
    failure_url='http://localhost:8080/webpay/failure/',
    session_id='SOME_SESSION_VALUE',
    amount=123456,
    order_id=1,
)
payment.redirect_url()

More info at http://github.com/sagmor/tbk

TODO:

  • Fetch token - Ready!
  • Confirmation
  • Logging

About webpay communication protocol: http://sagmor.com/rants/technical/webpay-communication-protocol/

Install for development

After cloning the repo:

python setup.py develop

For testing purposes:

python setup.py test

Recommended:

pip install nosy
nosy

About

Python implementation of Transbank's Webpay protocol

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published