Python Libraries

Accepting credit card payments with Python

The following example uses django-pinpayments by Ross Poulton:

t = PinTransaction()
t.email_address = 'customer@email.com'
t.description   = 'Widgets'
t.amount        = 4999
t.currency      = 'USD'
t.card_token    = 'card_nytGw7koRg23EEp9NTmz9w'
t.ip_address    = '1.2.3.4'
t.save()
t.process_transaction()

Python libraries compatible with Pin Payments: