Skip to main content

Korta

Python client fyrir Kortaþjónustuna. Mjög minimal og mjög beta í augnablikinu.

Notkun

Af því gefnu að þú sért með aðgangsupplýsingar frá kortu:

>>> from korta.client import Client, CreditCard, Order, korta_reference
>>> c = Client('/path/to/my/pem', '/path/to/my/crt',
...    'user_id', 'password', 'site_id', 'acceptor_id',
...    'acceptor_terminal')
>>> ref = korta_reference()
>>> c.one_off(Order(ref, 2000), CreditCard(number, month, year, ccv))

Uppsetning

Til að setja upp þarf að keyra:

$ python setup.py install

Prófanir

Af því gefnu að þú sért með aðgangsupplýsingar frá kortu.

  1. Búðu til userconfig.ini á sama leveli og setup.py með eftirfarandi gildum:

    [korta]
    user = user
    password = password
    site_id = number_from_korta
    card_acceptor_id = number_from_korta
    card_acceptor_identity = number_from_korta
    host = test.kortathjonustan.is
    pem_path = certs/test.rpcs.kortathjonustan.is.crt.pem
    ca_path = certs/ca-bundle.crt
  2. Setja upp nose:

    $ pip install nose
  3. Keyra:

    $ nosetests

Athugasemdir

  • Þarfnast pycurl, hef því ekki hugmynd hvort það virki á Windows.

  • Default ssl pakkinn í Python styður ekki password callbackið úr openssl, ástæðan fyrir pycurl

Böggar og patchar

Þróun fer fram á github: http://github.com/StefanKjartansson/Korta

Release files for korta 0.1.4.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for korta 0.1.4.2
File Size Uploaded
korta-0.1.4.2.tar.gz 12.0 kB Details

Release files / korta-0.1.4.2.tar.gz

Download URL korta-0.1.4.2.tar.gz
Size 12.0 kB
Tags Source
SHA-256 checksum
How to use checksums
28569a92099bb70a5cb5023f32d9aea548b5037e71a2ade602cc0429d47f2058
BLAKE2b-256 checksum
How to use checksums
04fab9324767875b1bf8dbbffbab9f98d266ce5c8efa2adeabdef98e6876cbd5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.1.4.2 This release

1 release file

0.1.4.1

1 release file

0.1.4

1 release file

0.1.3

1 release file

0.1.2

1 release file

0.1.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page