paylike-python-sdk
Python implementation of Paylike.io's rest api
Limitation
Only the transaction management part has been implemented, you can find the official api documentation here: https://github.com/paylike/api-docs#transactions
Basic Usage
client = PaylikeApiClient(api_key, merchant_id)
Methods
cancel_transaction
'''
Void or partially void the reserved amount on a transaction
- transactionId: String, // required
- amount: Decimal, // If no amount is given, the full amount will be voided
'''
client.cancel_transaction(transaction_id, amount=None)
capture_transaction
'''
Capture a transaction
- transactionId: String, // required
- amount: Decimal, // required
- descriptor: String, // optional, text on client bank statement
- currency: String, // optional, expected currency (for additional verification)
'''
client.capture_transaction(transaction_id, amount, descriptor='', currency=None)
create_payment_from_transaction
Make sure to read about recurring payments.
'''
Create a payment, based on an existing transaction (used for recurring payments)
- transactionId: String, // required
- currency: String, // required, three letter ISO
- amount: Decimal, // required, amount in minor units
- descriptor: String, // optional, the statement on the customers bankaccount. Will fallback to merchant descriptor
'''
client.create_payment_from_transaction(transaction_id, currency, amount, descriptor='')
create_payment_from_saved_card
Make sure to read about recurring payments. It's recommended to use create_payment_from_transaction
'''
Create a payment from a saved card token
- cardId: String, // required
- currency: String, // required, three letter ISO
- amount: Decimal, // required
- descriptor: String, // optional, the statement on the customers bankaccount. Will fallback to merchant descriptor
'''
client.create_payment_from_saved_card(card_id, currency, amount, descriptor='')
get_transaction
'''
Fetch a transaction
- transactionId: String, // required
'''
client.get_transaction(transaction_id)
get_transactions
'''
Fetch transactions
- limit: Number, // optional, the number of transactions to fetch. Default 100
'''
client.get_transactions(limit=100)
refund_transaction
'''
Refund, or partially refund a transaction
- transactionId: String, // required
- amount: Decimal, // required
- descriptor: String, // optional, the statement on the customers bankaccount. Will fallback to merchant descriptor
'''
client.refund_transaction(self, transaction_id, amount, descriptor="")
'''
Metadata
Release files for paylike 1.0
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 |
|---|---|---|---|---|
| paylike-1.0.tar.gz | 3.2 kB | Without provenance | Details for paylike-1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| paylike-1.0-py3-none-any.whl | Python 3 | none | any | Details for paylike-1.0-py3-none-any.whl |
Total release size: 7.1 kB
Release files / paylike-1.0.tar.gz
| Download URL | paylike-1.0.tar.gz |
|---|---|
| Size | 3.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
48472e0da141c186e11168354eacb981ab47f572a91f5b0a20e1095b517c2680
|
|
BLAKE2b-256 checksum How to use checksums |
c02879ad9e8929703094ec1b0e57623fafe783dd059cfa270eeb763b3ea818d1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.7.3 requests-toolbelt/0.9.1 tqdm/4.30.0 CPython/3.6.3
|
Release files / paylike-1.0-py3-none-any.whl
| Download URL | paylike-1.0-py3-none-any.whl |
|---|---|
| Size | 3.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1372d4fbfaafd0ce9273b0c7f26fcf180400e850d67653887a2fbeb951ea7eb1
|
|
BLAKE2b-256 checksum How to use checksums |
29036dc91ef5f7824005abe990edf20f753a6adf9b3a7a60c8c00cd37470aa70
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.7.3 requests-toolbelt/0.9.1 tqdm/4.30.0 CPython/3.6.3
|
Security for paylike 1.0
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.