Skip to main content

No project description provided

Project description

Jetpay payment page SDK

This is a set of libraries in the Python language to ease integration of your service with the Jetpay Payment Page.

Please note that for correct SDK operating you must have at least Python 3.5.

Payment flow

Payment flow

Installation

Install with pip

pip install jetpay-sdk

Get URL for payment

from payment_page_sdk.gate import Gate
from payment_page_sdk.payment import Payment

gate = Gate('secret')
payment = Payment('402')
payment.payment_id = 'some payment id'
payment.payment_amount = 1001
payment.payment_currency = 'USD'
payment_url = gate.get_purchase_payment_page_url(payment)

payment_url here is the signed URL.

Handle callback from Jetpay

You'll need to autoload this code in order to handle notifications:

from payment_page_sdk.gate import Gate

gate = Gate('secret')
callback = gate.handle_callback(data)

data is the JSON data received from payment system;

callback is the Callback object describing properties received from payment system; callback implements these methods:

  1. callback.get_payment_status() Get payment status.
  2. callback.get_payment() Get all payment data.
  3. callback.get_payment_id() Get payment ID in your system.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

jetpay-sdk-1.0.0.tar.gz (7.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

jetpay_sdk-1.0.0-py3-none-any.whl (8.7 kB view details)

Uploaded Python 3

File details

Details for the file jetpay-sdk-1.0.0.tar.gz.

File metadata

  • Download URL: jetpay-sdk-1.0.0.tar.gz
  • Upload date:
  • Size: 7.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.5

File hashes

Hashes for jetpay-sdk-1.0.0.tar.gz
Algorithm Hash digest
SHA256 4efbfaf32fcb46908b5bf9a151f4d38274ccdc37b1b997f3295f65e6505ed6f4
MD5 adb3d79b9c7994a79972fa2d43ee7274
BLAKE2b-256 80d71a64c6c816c1af5a4de7ac541e6583625d0fdeba153a497d9af3949f4039

See more details on using hashes here.

File details

Details for the file jetpay_sdk-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: jetpay_sdk-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 8.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.5

File hashes

Hashes for jetpay_sdk-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 081f59ee1faeb2d35022ac62a80eae4cb511be263d96b8be67f88dc3bbffbd2d
MD5 b41e6d07f23b90575be70871747e107e
BLAKE2b-256 cf0ed642aab6a451113930c7fbea41ce5c096bbef00e2fb92c9c9e8886d4c2d9

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page