rpay-sdk 1.0.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
rpay_sdk/__init__.py ADDED
@@ -0,0 +1,77 @@
1
+ from __future__ import annotations
2
+ from .client import RPayClient, RPayError, create_client, rpay
3
+ from .constants import (
4
+ RPAY_BANKS,
5
+ RPAY_DEFAULT_BASE_URL,
6
+ RPAY_DEFAULT_TIMEOUT_SEC,
7
+ RPAY_USDT_NETWORKS,
8
+ resolve_bank_spec,
9
+ resolve_usdt_network_spec,
10
+ )
11
+ from .unified import (
12
+ detect_payment_channel,
13
+ match_unified_transactions,
14
+ normalize_unified_invoice,
15
+ normalize_unified_transaction,
16
+ )
17
+ from .webhooks import (
18
+ build_canonical_payload_string,
19
+ hmac_sha256_hex,
20
+ safe_compare_signature,
21
+ sign_canonical_payload,
22
+ sign_raw_body,
23
+ verify_webhook,
24
+ )
25
+
26
+ # Module-level shorthands so `import rpay_sdk as rpay; rpay.pay(...)` works seamlessly
27
+ init = rpay.init
28
+ configure = rpay.configure
29
+ for_domain = rpay.for_domain
30
+ pay = rpay.pay
31
+ create_invoice = rpay.create_invoice
32
+ check = rpay.check
33
+ check_invoice = rpay.check_invoice
34
+ status = rpay.status
35
+ get_invoice = rpay.get_invoice
36
+ lsgd = rpay.lsgd
37
+ get_history = rpay.get_history
38
+ qr = rpay.qr
39
+ match_payment = rpay.match_payment
40
+ route = rpay.route
41
+
42
+ __all__ = [
43
+ "rpay",
44
+ "RPayClient",
45
+ "RPayError",
46
+ "create_client",
47
+ "init",
48
+ "configure",
49
+ "for_domain",
50
+ "pay",
51
+ "create_invoice",
52
+ "check",
53
+ "check_invoice",
54
+ "status",
55
+ "get_invoice",
56
+ "lsgd",
57
+ "get_history",
58
+ "qr",
59
+ "match_payment",
60
+ "route",
61
+ "verify_webhook",
62
+ "sign_canonical_payload",
63
+ "sign_raw_body",
64
+ "hmac_sha256_hex",
65
+ "safe_compare_signature",
66
+ "build_canonical_payload_string",
67
+ "RPAY_BANKS",
68
+ "RPAY_USDT_NETWORKS",
69
+ "RPAY_DEFAULT_BASE_URL",
70
+ "RPAY_DEFAULT_TIMEOUT_SEC",
71
+ "resolve_bank_spec",
72
+ "resolve_usdt_network_spec",
73
+ "detect_payment_channel",
74
+ "normalize_unified_invoice",
75
+ "normalize_unified_transaction",
76
+ "match_unified_transactions",
77
+ ]