Skip to main content

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.

Release files for jetpay-sdk 1.0.0

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

Source distribution (sdist)

Source distribution for jetpay-sdk 1.0.0
File Size Uploaded
jetpay-sdk-1.0.0.tar.gz 7.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for jetpay-sdk 1.0.0
File Interpreter ABI Platform
jetpay_sdk-1.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 15.9 kB

Release files / jetpay-sdk-1.0.0.tar.gz

Download URL jetpay-sdk-1.0.0.tar.gz
Size 7.2 kB
Tags Source
SHA-256 checksum
How to use checksums
4efbfaf32fcb46908b5bf9a151f4d38274ccdc37b1b997f3295f65e6505ed6f4
BLAKE2b-256 checksum
How to use checksums
80d71a64c6c816c1af5a4de7ac541e6583625d0fdeba153a497d9af3949f4039
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / jetpay_sdk-1.0.0-py3-none-any.whl

Download URL jetpay_sdk-1.0.0-py3-none-any.whl
Size 8.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
081f59ee1faeb2d35022ac62a80eae4cb511be263d96b8be67f88dc3bbffbd2d
BLAKE2b-256 checksum
How to use checksums
cf0ed642aab6a451113930c7fbea41ce5c096bbef00e2fb92c9c9e8886d4c2d9
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files

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