Dragonpay Python library
Project description
Dragon.py
=========
A Dragonpay client.
Usage
-----
```
from flask import redirect
from dragon import DragonPay
# To use test, just change production to False
d = DragonPay("MERCHANTID", "PASSWORD", production=True)
@app.route('/pay')
def pay_controller():
return redirect(d.pay("TRANSACTIONID", "AMOUNT", "CURRENCY", "DESCRIPTION",
"EMAIL"))
```
=========
A Dragonpay client.
Usage
-----
```
from flask import redirect
from dragon import DragonPay
# To use test, just change production to False
d = DragonPay("MERCHANTID", "PASSWORD", production=True)
@app.route('/pay')
def pay_controller():
return redirect(d.pay("TRANSACTIONID", "AMOUNT", "CURRENCY", "DESCRIPTION",
"EMAIL"))
```
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
dragonpy-0.0.1.tar.gz
(1.5 kB
view details)
File details
Details for the file dragonpy-0.0.1.tar.gz
.
File metadata
- Download URL: dragonpy-0.0.1.tar.gz
- Upload date:
- Size: 1.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 606d178c63fc8ec9a138d5d90899486d75e0839e40c8484501406be0e861fcf5 |
|
MD5 | fd658fee4a219640474ab8afebf66aa8 |
|
BLAKE2b-256 | 6677dc58caada186c053f6bf8e123dfc8c295863bb1b28385024640d4ce8310f |