Skip to main content

No project description provided

Project description

Build Status Test Coverage Maintainability

Convertiq payment page SDK

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

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

convertiq_sdk-1.0.3.tar.gz (9.2 kB view details)

Uploaded Source

Built Distribution

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

convertiq_sdk-1.0.3-py3-none-any.whl (8.9 kB view details)

Uploaded Python 3

File details

Details for the file convertiq_sdk-1.0.3.tar.gz.

File metadata

  • Download URL: convertiq_sdk-1.0.3.tar.gz
  • Upload date:
  • Size: 9.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.6

File hashes

Hashes for convertiq_sdk-1.0.3.tar.gz
Algorithm Hash digest
SHA256 225ab530fc49b4da83ea56dd98f329403bc452777aa53cf664bf979c5b220d70
MD5 e64f2f94469ea1588aa47a9700fc3be6
BLAKE2b-256 d3457171d86aba624c68911a6fe9115a46b4d952e2f35e1875cc170cea9b94e3

See more details on using hashes here.

File details

Details for the file convertiq_sdk-1.0.3-py3-none-any.whl.

File metadata

  • Download URL: convertiq_sdk-1.0.3-py3-none-any.whl
  • Upload date:
  • Size: 8.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.6

File hashes

Hashes for convertiq_sdk-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 b8f51d558f1b719a23cb82f87ae10f618c4af5050188dc4938123d6f5c7a4df0
MD5 48b54f65173e74809c0b01ebb24649f0
BLAKE2b-256 16822e407e0cd4d1065fdb487281c546a1b490299f5572c350ee82a6988b8e26

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