Scan your whole stack
Are you using velirapay?
Find out what’s in your code.
Scan your apps free in minutes (opens in a new tab)Latest version: v0.2.8
velirapay was last scanned on 24 Nov 2026 at version 0.2.8. Risk score 0 of 100. No malicious behavior was detected.
| Version | Published | Status |
|---|---|---|
| 0.2.8 LATEST | 24 Nov 2026 | No rules fired |
| 0.2.7 | 20 Nov 2026 | No rules fired |
| 0.2.6 | 17 Nov 2026 | No rules fired |
| 0.2.5 | 15 Nov 2026 | Not shown |
| 0.2.4 | 15 Nov 2026 | Not shown |
Findings for v0.2.8. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.
The score describes 0.2.8; other versions have their own rules, not their own score.
The publisher’s own README, as collected from the registry.
The official Python library for VeliraPay, the crypto payment processor. It covers the whole v1 API: the coins on offer, charges, invoices, payment links, coupons, payouts and payout addresses, events, webhook endpoints, your account and its payment settings, the overview, the activity log, API keys, members and invitations, and paying for Pro. It also verifies the webhooks VeliraPay sends you. It is fully typed and has no dependencies.
The full API reference is at velirapay.com/docs.
Python 3.11 or later. The library uses the standard library alone.
pip install velirapay
Create an API key in the dashboard under Developers → API keys. Keep it on your server: anyone holding it can create charges and read your payments.
To charge a customer, create a charge with what you already know about them, and send them to its checkout page. With Flask:
import os
from flask import Flask, redirect
from flask.typing import ResponseReturnValue
from velirapay import VeliraPayClient
app = Flask(__name__)
velirapay = VeliraPayClient(os.environ["VELIRAPAY_API_KEY"])
@app.post("/orders/1042/pay")
def pay() -> ResponseReturnValue:
charge = velirapay.charges.create(
{
"amount": "49.90",
"currency": "EUR",
"asset": "BTC",
"customer": {"email": "ada@example.com", "name": "Ada Lovelace"},
"metadata": {"order_id": "1042"},
"success_url": "https://example.com/orders/1042",
},
idempotency_key="order-1042-attempt-1",
)
assert charge.checkout_url is not None
return redirect(charge.checkout_url, code=303)
They pay there, and VeliraPay tells your server about it with a webhook. The exchange rate is locked when the charge is created, and the customer has 30 minutes to pay. The idempotency key makes the call safe to retry: use a new one for a new attempt, such as a charge replacing one that expired (Retries and idempotency).
Parameters are a dict under the names the API gives them, as the API reference lists them. A key you leave out is not sent and a key set to None is sent as null, which is how a field is cleared; that difference is why they are not keyword arguments, and so is from, a Python keyword the activity log filters by. They are typed (ChargeCreateParams and so on), so your editor and type checker know every key. Enum members such as Asset.BTC can stand in for their values, and a datetime, a date or a Decimal is sent the way the API expects: a datetime in UTC, one without a time zone being taken as UTC already.
Objects come back with typed attributes: charge.checkout_url, charge.asset_amount, charge.customer.ip_address. Amounts are always strings, such as "49.90", never floats, so no precision is lost; Decimal(charge.asset_amount) does arithmetic with them. Times are datetime objects in UTC, and a day such as invoice.due_at is a date. checkout_url is typed str | None because the charges in webhooks leave it out; a charge the API answers with always has one, which the assert tells your type checker.
Amounts you send are best given as strings or Decimals too. A number is sent as a decimal string, a float rounded to 14 significant digits first, the precision the API reads a number with: 0.00005 goes out as "0.00005", and 0.1 + 0.2 as "0.3".
Each group of endpoints is an attribute of the client, such as velirapay.charges, and answers with an object such as a Charge. get("field") reads an attribute this version of the library does not know yet, and to_dict() gives the object as the API sent it, such as to store it.
| When | Use | |
|---|---|---|
| You are asking one customer for one payment | A charge | The default. It has one checkout page for that one payment, with the rate locked for 30 minutes. |
| The customer should choose the coin, or pays later | An invoice | It has no 30-minute timer but can close on a date you choose, can be itemised, emailed and reminded, and lets them pick the coin on its page. |
| Many customers pay through the same public page | A payment link, created once | A product sold again and again, a tip jar, a link on your site. |
Do not create a new payment link for each customer or each order.
A charge needs its coin up front, because its exchange rate, amount and deposit address depend on it. Ask the customer on your own page, and offer them the coins from velirapay.assets.list().
assets.list() gives the coins that can be paid in the key's mode, whether your account takes each, and the lowest price a charge in each can have.
from velirapay import Currency
coins = velirapay.assets.list({"currency": Currency.EUR})
for coin in coins:
coin.id # "USDT": what to pass as asset, and coin.asset() is the Asset member
coin.name # "Tether USD"
coin.network # "Ethereum (ERC-20)", the network the customer has to send it on
coin.accepted # whether your account takes it, which needs a payout address for that network
coin.minimum_amount # "10", in the coin, or None when it has no minimum of its own
coin.minimum_price # "8.71", the lowest price in EUR right now
coin.exchange_rate # "0.8709"
coin.confirmation_wait # "about a minute"
coin.network_surcharge # None, or what a charge in it asks on top of the price, in the coin
coins.currencies # ["USD", "EUR", "GBP", "CAD", "AUD", "CHF", "TRY"], the currencies prices can be asked in
Without currency, prices are in your account's default currency. The list is not paged.
No charge, payment link or invoice asks for less than the lowest price of its currency, about half a dollar: 0.50 in USD, EUR, GBP and CHF, 0.70 in CAD, 0.80 in AUD and 25.00 in TRY. A few coins start higher: USDT and USDC on Ethereum at 10 of the token, because paying one out costs enough in gas that a smaller payment would leave you with little. A coin's minimum is in the coin, so minimum_price moves a little with the market: leave some room. charges.create() raises a ValidationError on amount below the lowest price, and on asset below a coin's minimum.
A coin with a network_surcharge, such as USDT on Tron, asks the customer for that much more than the price, to pay for passing the payment on, so tell them before they choose it. VeliraPay keeps it: it is not part of your payout, and no refund can include it. A charge in such a coin counts it in asset_amount and gives it again as charge.network_surcharge.
A charge is how you ask a customer for a payment, in one coin. The exchange rate is locked when it is created, and the customer has 30 minutes to pay.
from datetime import date
from velirapay import Asset, ChargeStatus, Currency
# For an amount you set, with whatever you already know.
charge = velirapay.charges.create(
{
"amount": "150.00",
"currency": Currency.USD,
"asset": Asset.USDC, # USD Coin on Ethereum
"description": "Pro plan, 1 year",
"metadata": {"order_id": "1042"},
"customer": {"email": "ada@example.com", "name": "Ada Lovelace"},
"custom_fields": [{"label": "Company", "value": "Analytical Engines"}], # shown with the charge in the dashboard
"success_url": "https://example.com/orders/1042", # a button back once they have paid
"cancel_url": "https://example.com/cart", # a link back from the checkout
"success_message": "Thank you, your licence is on its way.", # on the page and in the receipt
"send_email": True, # email them the payment page straight away
}
)
# For one of your payment links: the currency comes from the link, and so does the price when it is fixed.
charge = velirapay.charges.create({"payment_link": "p4n8r2t6y1ua", "asset": Asset.ETH})
# With one of your coupons: fiat_amount is the lower price, and discount_amount what the coupon took off.
charge = velirapay.charges.create({"payment_link": "p4n8r2t6y1ua", "asset": Asset.ETH, "coupon": "SPRING10"})
charge.coupon # "SPRING10"
charge.discount_amount # "15.00"
charge = velirapay.charges.retrieve("k3v9x2m7q8wz")
charge.status # "pending", "underpaid", "paid", "expired" or "canceled"
charge.is_paid()
charge.asset_amount # "0.0025", what the customer has to send
charge.received_amount # what arrived so far
charge.deposit_address
charge.transactions # the transfers seen, as Transaction objects
charge.metadata # {"order_id": "1042"}
paid = velirapay.charges.list({"status": ChargeStatus.PAID})
hers = velirapay.charges.list({"search": "ada@example.com", "created_from": date(2026, 10, 1), "asset": Asset.BTC})
# Email the customer the payment page, if you did not pass send_email.
velirapay.charges.send("k3v9x2m7q8wz")
# Only while the charge is pending and no transfer to it has been seen.
velirapay.charges.cancel("k3v9x2m7q8wz")
send() needs a customer email and only works while the charge is pending, or it raises a ConflictError. Creating a charge with send_email but no customer email raises a ValidationError on customer_email and creates nothing. A charge can be emailed once every 10 minutes, and the emails count towards the limits under Invoices. In test mode, charge emails can only go to members of your account.
asset takes an Asset member or its value, such as "BTC". The enum lists every coin the API knows, but not all of them can be paid in at any given time: a coin is only offered while VeliraPay can also pay it out, and a network can be switched off. account.accepted_assets lists the coins your account takes right now (Your account); a charge in any other coin raises a ValidationError. The coins of BNB Chain, Base, Arbitrum One and Polygon can only be used with a live key.
charge.processing_terms holds the terms fixed when the charge was quoted, as a ProcessingTerms: percent, the processing fee in percent of what is paid, leaving out any network surcharge, such as "1.75", and max_forwarding_percent, the most passing the payment on to you may cost, in percent of your share after the fee, an int such as 10. It is None for older charges and for VeliraPay's own billing.
metadata holds up to 20 keys of at most 40 characters each. Values are strings, numbers, booleans or None, and a string is at most 500 characters.
The accounts of one owner can create 300 charges in each mode within 30 minutes, through the API, the MCP server and the dashboard together, and 30 until one of them has been paid in live mode. Canceled charges count, paid live ones do not, and payments customers start on the hosted checkout are not counted. Past that, create() raises a RateLimitError whose retry_after() says how many seconds to wait.
charge.customer holds what is known about who pays, to help you spot fraud before you ship anything. When the customer starts the payment on the hosted checkout, VeliraPay records the IP address and browser they did it from. A charge you create from your server comes from your server rather than the customer, so pass what you know:
charge = velirapay.charges.create(
{
"amount": "150.00",
"currency": "USD",
"asset": "BTC",
"customer": {
"email": "ada@example.com",
"name": "Ada Lovelace",
"ip_address": "203.0.113.7", # the customer's, from their request to your server
"user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 14_6) AppleWebKit/605.1.15",
"reference": "cus_1042", # your own id for the customer
"phone": "+44 20 7946 0958",
"country": "GB", # ISO 3166 two-letter code
"metadata": {"orders": 7}, # the same limits as the charge's metadata
},
}
)
charge.customer.ip_address # "203.0.113.7"
charge.customer.user_agent
charge.customer.country # "GB"
charge.customer.metadata # {"orders": 7}
Every field is optional, and any other key is refused with a ValidationError. The older customer_email parameter still works.
The customer also comes back with what VeliraPay works out from the IP address, which you cannot send: ip_country, the country the hosted checkout placed it in, as an ISO 3166 two-letter code or "T1" for Tor (None for a charge created through the API), and ip_asn and ip_network, the number of the network it belongs to and who runs it, such as 24940 and "Hetzner Online GmbH". A customer on a hosting company's network is often a bot or someone hiding behind a server, and a country that differs from the one they gave is worth a second look.
A customer who sends less than a charge asks for leaves it underpaid, announced with charge.underpaid. One who pays after the rate lock ran out, to an expired or canceled charge or as a top-up to an underpaid one, makes a late payment, announced with charge.late_payment. Both wait for you to decide; a late payment on top of a paid charge is counted on its own.
# Settle an underpaid charge, or a late payment on an expired or canceled one, for what arrived and confirmed.
velirapay.charges.accept("k3v9x2m7q8wz")
# Record a refund you sent from your own wallet, in the charge's coin.
velirapay.charges.record_refund("k3v9x2m7q8wz", {"amount": "0.0005", "txid": "7d1c5e9a…", "reason": "Returned item"})
accept() raises a ConflictError while a payment to an underpaid charge is still confirming, and for a charge that is neither underpaid nor late. VeliraPay never sends money back on its own: record_refund() records a refund you made yourself, and tells the customer by email when the charge has their address. An underpaid charge or a late payment has to be accepted before it can be refunded, and the network surcharge never can be.
TRX and USDT on Tron (USDT_TRON) share deposit addresses. When a charge in one of them closes, expired or canceled, with nothing of its own coin while the other arrived at its address, VeliraPay quotes it again in the coin that arrived: asset, asset_amount, exchange_rate and network_surcharge then describe that coin, fiat_amount stays the same, and charge.switched_from keeps the first quote as an OriginalQuote. The transfer waits as a late payment, announced with charge.late_payment, for you to accept, and charge.paid and what follows it are in the new coin. A charge switches at most once, and switched_from is None for every other charge, so read the coin from each charge you get rather than remembering the one you created it with.
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.
The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).
The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.