Skip to main content

No project description provided

Project description

Build Status Test Coverage Maintainability

flashpay payment page SDK

This is a set of libraries in the Python language to ease integration of your service with the flashpay 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 flashpay-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 flashpay

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

flashpay_sdk-1.0.7.tar.gz (6.6 kB view details)

Uploaded Source

Built Distribution

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

flashpay_sdk-1.0.7-py3-none-any.whl (8.0 kB view details)

Uploaded Python 3

File details

Details for the file flashpay_sdk-1.0.7.tar.gz.

File metadata

  • Download URL: flashpay_sdk-1.0.7.tar.gz
  • Upload date:
  • Size: 6.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.4

File hashes

Hashes for flashpay_sdk-1.0.7.tar.gz
Algorithm Hash digest
SHA256 12330e419911f9dd7f42886921f1c81da03718b7222039b5c5b2950c72f6b1eb
MD5 0c04c327911987ba88256db3835ffb28
BLAKE2b-256 634c34944004e60d947d7146702bf9a89c465603eb4016104d871be6711e11aa

See more details on using hashes here.

File details

Details for the file flashpay_sdk-1.0.7-py3-none-any.whl.

File metadata

  • Download URL: flashpay_sdk-1.0.7-py3-none-any.whl
  • Upload date:
  • Size: 8.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.4

File hashes

Hashes for flashpay_sdk-1.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 47cf3216f8cce4a1abe8ca79f672f85830ea30731f4154a13cf04283ba1bc4bd
MD5 2441ab1911684a21c22ca02ae6ccfab0
BLAKE2b-256 2b9536e218847f1ed6acbc140fe546a9bd844b8edcd9b38a3c6ba85e59ebf156

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