Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
This Api has been made Crypto Payments based on USDT.TRC20 All examples are available into examples/ folder.
# Install with pip
pip install capitalpayments
(NOTE: Sandbox mode needs test coins request here)
from sdk import SDK
sdk = SDK('api_key','api_secret')
response = sdk.login()
from sdk import SDK
sdk = SDK('api_key','api_secret')
# get the environment : response >= int $sandobox (0 or 1)
response = sdk.getEnvironment()
from sdk import SDK
sdk = SDK('api_key','api_secret')
# get the account data
response = sdk.getAccount()
from sdk import SDK
sdk = SDK('api_key','api_secret')
# get the balance from the api
response = sdk.getBalance()
from sdk import SDK
sdk = SDK('api_key','api_secret')
# get main wallet data (private key is included)
response = sdk.getMainWallet()
from sdk import SDK
sdk = SDK('api_key','api_secret')
# retrieves all wallets attached to api
response = sdk.getWallets()
from sdk import SDK
sdk = SDK('api_key','api_secret')
# retrieves invoice data
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
})
from sdk import SDK
sdk = SDK('api_key','api_secret')
# retrieves invoices data
response = sdk.createInvoices([
{
'invoice_id' : 'invoice_id' # string
'amount' : 'amount' # float|int
'whatsApp' : 'whatsApp' # (optional) int whatsapp full number
'name' : 'customer_name' # (optional) string customer's name
},
{
'invoice_id' : 'invoice_id' # string
'amount' : 'amount' # float|int
'whatsApp' : 'whatsApp' # (optional) int whatsapp full number
'name' : 'customer_name' # (optional) string customer's name
}
])
from sdk import SDK
sdk = SDK('api_key','api_secret')
# get the invoice status
response = sdk.getInvoiceStatus({
'invoice_id' : 'invoice_id' # string
})
from sdk import SDK
sdk = SDK('api_key','api_secret')
# get the invoice status
response = sdk.cancelInvoice({
'invoice_id' : 'invoice_id' # string
})
from sdk import SDK
sdk = SDK('api_key','api_secret')
# retrieve the payout data
response = sdk.createPayout({
'payout_id' : 'payout_id' # string
'amount' : 'amount' # float|int
'address' : 'USDT.TRC20WalletAddress' # string
})
from sdk import SDK
sdk = SDK('api_key','api_secret')
# retrieves payouts data
response = sdk.createPayouts([
{
'payout_id' : 'payout_id' # string
'amount' : 'amount' # float|int
'address' : 'USDT.TRC20WalletAddress' # string
},
{
'payout_id' : 'payout_id' # string
'amount' : 'amount' # float|int
'address' : 'USDT.TRC20WalletAddress' # string
},
])
from sdk import SDK
sdk = SDK('api_key','api_secret')
# get the payout status
response = sdk.getPayoutStatus({
'payout_id' : 'payout_id' # string
})
from sdk import SDK
sdk = SDK('api_key','api_secret')
# cancel payout
response = sdk.cancelPayout({
'payout_id' : 'PayoutId', # @string
})
from sdk import SDK
sdk = SDK('api_key','api_secret')
# cancel payout
response = sdk.createItem({
'title' : 'title', # @string
'description' : 'description', # @string
'price' : 10 # @int|float
})
from sdk import SDK
sdk = SDK('api_key','api_secret')
# delete item
response = sdk.deleteItem({
'item_id' : 'item_id', # @string
})
from sdk import SDK
sdk = SDK('api_key','api_secret')
# get array items
response = sdk.getItems()
from sdk import SDK
sdk = SDK('api_key','api_secret')
# get item
response = sdk.getItem({
'item_id' : 'item_id', # @string
})
from sdk import SDK
sdk = SDK('api_key','api_secret')
# create customer
response = sdk.createCustomer({
'name' : 'title', # @string
'email' : 'description', # @string
'whatsapp' : 'full_whatsapp', # @string
'address' : 'USDT.TRC20WalletAddress', # @string
})
from sdk import SDK
sdk = SDK('api_key','api_secret')
# delete customer
response = sdk.deleteCustomer({
'customer_id' : 'customer_id', # @string
})
from sdk import SDK
sdk = SDK('api_key','api_secret')
# get array customers
response = sdk.getCustomers()
from sdk import SDK
sdk = SDK('api_key','api_secret')
# get customer by id
response = sdk.getCustomer({
'customer_id' : 'customer_id', # @string
})
from sdk import SDK
sdk = SDK('api_key','api_secret')
# requires invoice_id
response = sdk.setTestInvoiceAsPayed({
'invoice_id' : 'invoice_id'
})
# set deposit wallet
from sdk import SDK
sdk = SDK('api_key','api_secret')
response = sdk.setDepositWallet({ 'address' : 'TTCkwzmTZHjN4VSVRVz7s1h5btjWGfvnF9' })
FAQs
For Api Capital Payments
We found that capitalpayments demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.