tripay
Tripay Client For Python (UNOFFICIAL)
Support:
-
Sandbox & Production Mode
-
Get Payment Instruction
-
Fee Calculator
-
Get Payment Channels
-
Closed Payment
- Helper to make order items
- Automatic signature generation
- Request payment
- Detail transaction
- List transaction
-
Open Payment
- Automatic signature generation
- Request payment
- Detail transaction
- List transaction
-
Easy to use
Usage
Installation:
pip install tripay
Setup client:
from tripay import TriPay
tripay = TriPay(
api_key="DEV-xxx",
merchant_code="xxx",
merchant_private_key="xxx",
debug=True # sandbox mode
)
Get Payment Instruction:
tripay.get_payment_instruction("BRIVA").json()
Fee Calculator:
tripay.fee_calculator(5000).json()
Get Payment Channels:
tripay.get_payment_channel().json()
Closed Payment:
# access to closed payments
cp = tripay.closed_payment
# creating items
items = []
items.append(
cp.create_item(
sku="099999888",
name="sabun",
price=2500,
quantity=10
)
)
# request payment
resp = cp.request(
"BRIVA",
2500 * 10,
customer_name="Dadang",
customer_email="someone@test.com",
customer_phone="0899988234",
order_items=items
).json()
print(resp)
Open Payment:
# notes: for open payments currently does not support sandbox mode
tripay.debug = False
# access to open payments
op = tripay.open_payment
# request payment
resp = op.request("BCAVA").json()
print(resp)
Metadata
Release files for tripay 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| tripay-0.1.1.tar.gz | 4.2 kB | Without provenance | Details for tripay-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| tripay-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for tripay-0.1.1-py3-none-any.whl |
Total release size: 9.4 kB
Release files / tripay-0.1.1.tar.gz
| Download URL | tripay-0.1.1.tar.gz |
|---|---|
| Size | 4.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
09259411b7667bb2006db5e5ad3341a970ba6083452be20e607239e9486d3b61
|
|
BLAKE2b-256 checksum How to use checksums |
1c2870a62d5b301b8c8f9e76d45868219a69b2e2cff14b162474cdf8e4a8566f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.6 CPython/3.8.5 Linux/5.4.0-80-generic
|
Release files / tripay-0.1.1-py3-none-any.whl
| Download URL | tripay-0.1.1-py3-none-any.whl |
|---|---|
| Size | 5.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d207db77d8f70433166c4391efa32ead18d91d5c950e95ec6503e011ab2a6d13
|
|
BLAKE2b-256 checksum How to use checksums |
6b00f2fb81dd9a1ac1f707664fb47afdb8875c7c0ed17f73ac6a88f239e48102
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.6 CPython/3.8.5 Linux/5.4.0-80-generic
|
Security for tripay 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.