For Api Capital Payments
Project description
CapitalPayments
This Api has been made Crypto Payments based on USDT.TRC20 All examples are available into examples/ folder.
# Install with pip
pip install capitalpayments
- Create an account Create account
- Create api key here
- Follow next steps to connect your account
(NOTE: Sandbox mode needs test coins request here)
Login
from sdk import SDK
sdk = SDK('api_key','api_secret')
response = sdk.login()
Get environment
from sdk import SDK
sdk = SDK('api_key','api_secret')
# get the environment : response >= int $sandobox (0 or 1)
response = sdk.getEnvironment()
Get account
from sdk import SDK
sdk = SDK('api_key','api_secret')
# get the account data
response = sdk.getAccount()
Get balance
from sdk import SDK
sdk = SDK('api_key','api_secret')
# get the balance from the api
response = sdk.getBalance()
Get main wallet
from sdk import SDK
sdk = SDK('api_key','api_secret')
# get main wallet data (private key is included)
response = sdk.getMainWallet()
Get wallets
from sdk import SDK
sdk = SDK('api_key','api_secret')
# retrives all wallets attached to api
response = sdk.getWallets()
Create invoice
from sdk import SDK
sdk = SDK('api_key','api_secret')
# get the invoice status
response = sdk.createInvoice({
'invoice_id' => 'invoice_id' # string
'amount' => 'amount' # float|int
'whatsApp' => 'whatsApp' # (optional) int whatsapp full number
'name' => 'customer_name' # (optional) string customer's name
})
Get invoice status
from sdk import SDK
sdk = SDK('api_key','api_secret')
# get the invoice status
response = sdk.getInvoiceStatus({
'invoice_id' => 'invoice_id' # string
})
Cancel invoice
from sdk import SDK
sdk = SDK('api_key','api_secret')
# get the invoice status
response = sdk.cancelInvoice({
'invoice_id' => 'invoice_id' # string
})
Create payout
from sdk import SDK
sdk = SDK('api_key','api_secret')
# get the payout data
response = sdk.createPayout({
'payout_id' => 'payout_id' # string
'amount' => 'amount' # float|int
})
Get payout status
from sdk import SDK
sdk = SDK('api_key','api_secret')
# get the payout status
response = sdk.getPayoutStatus({
'payout_id' => 'payout_id' # string
})
Cancel payout
from sdk import SDK
sdk = SDK('api_key','api_secret')
# cancel payout
response = sdk.cancelPayout({
'payout_id' => 'PayoutId', # @string
})
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
capitalpayments-0.0.9.tar.gz
(4.0 kB
view hashes)
Built Distribution
Close
Hashes for capitalpayments-0.0.9-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 76099f832a016673854339dd6d59bcfb7fda544ea29059df539888978ce21532 |
|
MD5 | 3789104fdfd8a45ba60e97d0a9346c4b |
|
BLAKE2b-256 | 4dd2aef5181b7164cc481da3f9f9feac96ea69941be5c1a50a7f9c8e6e1253e7 |