swarmauri_billing_paystack 0.9.3.dev2__tar.gz → 0.11.0__tar.gz
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.
- swarmauri_billing_paystack-0.11.0/NOTICE +7 -0
- swarmauri_billing_paystack-0.11.0/PKG-INFO +477 -0
- swarmauri_billing_paystack-0.11.0/README.md +443 -0
- {swarmauri_billing_paystack-0.9.3.dev2 → swarmauri_billing_paystack-0.11.0}/pyproject.toml +64 -4
- {swarmauri_billing_paystack-0.9.3.dev2 → swarmauri_billing_paystack-0.11.0}/swarmauri_billing_paystack/provider.py +144 -37
- swarmauri_billing_paystack-0.9.3.dev2/PKG-INFO +0 -108
- swarmauri_billing_paystack-0.9.3.dev2/README.md +0 -77
- {swarmauri_billing_paystack-0.9.3.dev2 → swarmauri_billing_paystack-0.11.0}/LICENSE +0 -0
- {swarmauri_billing_paystack-0.9.3.dev2 → swarmauri_billing_paystack-0.11.0}/swarmauri_billing_paystack/__init__.py +0 -0
|
@@ -0,0 +1,477 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: swarmauri_billing_paystack
|
|
3
|
+
Version: 0.11.0
|
|
4
|
+
Summary: Paystack-backed Swarmauri billing provider for checkout, payment initialization, subscriptions, invoices, refunds, splits, and webhook verification.
|
|
5
|
+
License-Expression: Apache-2.0
|
|
6
|
+
License-File: LICENSE
|
|
7
|
+
License-File: NOTICE
|
|
8
|
+
Keywords: swarmauri,sdk,billing,paystack,paystack billing provider,paystack payments,community,payments,payment gateway,hosted checkout,payment initialization,recurring billing,subscription management,invoicing,refunds,marketplace splits,webhook verification,merchant services,e-commerce integration
|
|
9
|
+
Author: Jacob Stewart
|
|
10
|
+
Author-email: jacob@swarmauri.com
|
|
11
|
+
Requires-Python: >=3.10,<3.15
|
|
12
|
+
Classifier: Development Status :: 1 - Planning
|
|
13
|
+
Classifier: Intended Audience :: Developers
|
|
14
|
+
Classifier: Intended Audience :: Information Technology
|
|
15
|
+
Classifier: Operating System :: OS Independent
|
|
16
|
+
Classifier: Topic :: Internet :: WWW/HTTP
|
|
17
|
+
Classifier: Topic :: Office/Business :: Financial
|
|
18
|
+
Classifier: Topic :: Office/Business :: Financial :: Point-Of-Sale
|
|
19
|
+
Classifier: Topic :: Software Development :: Libraries
|
|
20
|
+
Classifier: Topic :: Software Development :: Libraries :: Application Frameworks
|
|
21
|
+
Classifier: Programming Language :: Python
|
|
22
|
+
Classifier: Programming Language :: Python :: 3
|
|
23
|
+
Classifier: Programming Language :: Python :: 3 :: Only
|
|
24
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
25
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
26
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
27
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
28
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
29
|
+
Requires-Dist: paystackapi (>=2.0.0)
|
|
30
|
+
Requires-Dist: swarmauri_base
|
|
31
|
+
Requires-Dist: swarmauri_core
|
|
32
|
+
Description-Content-Type: text/markdown
|
|
33
|
+
|
|
34
|
+
# swarmauri_billing_paystack
|
|
35
|
+
|
|
36
|
+
<!-- readme-standards:begin branding -->
|
|
37
|
+
<p align="center"><a href="https://github.com/swarmauri/swarmauri-sdk"><img src="https://raw.githubusercontent.com/swarmauri/swarmauri-sdk/master/assets/swarmauri.brand.theme.svg" alt="Swarmauri SDK" width="300"></a></p>
|
|
38
|
+
<p align="center"><strong>swarmauri_billing_paystack</strong></p>
|
|
39
|
+
<p align="center">Paystack-backed Swarmauri billing provider for checkout, payment initialization, subscriptions, invoices, refunds, splits, and webhook verification.</p>
|
|
40
|
+
<p align="center">
|
|
41
|
+
<a href="https://pypi.org/project/swarmauri_billing_paystack/"><img alt="pypi: swarmauri_billing_paystack" src="https://img.shields.io/pypi/v/swarmauri_billing_paystack?labelColor=1E293B&color=1D4ED8"></a>
|
|
42
|
+
<a href="https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/50-community/swarmauri_billing_paystack/pyproject.toml"><img alt="Source version: 0.11.0" src="https://img.shields.io/static/v1?label=Source%20version&message=0.11.0&labelColor=1E293B&color=4338CA"></a>
|
|
43
|
+
<a href="https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/50-community/swarmauri_billing_paystack/pyproject.toml"><img alt="Python: >=3.10,<3.15" src="https://img.shields.io/static/v1?label=Python&message=%3E%3D3.10%2C%3C3.15&labelColor=1E293B&color=0F766E"></a>
|
|
44
|
+
<a href="https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/50-community/swarmauri_billing_paystack/pyproject.toml"><img alt="Layer: community" src="https://img.shields.io/static/v1?label=Layer&message=community&labelColor=1E293B&color=6D28D9"></a>
|
|
45
|
+
<a href="https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/50-community/swarmauri_billing_paystack/README.md#lifecycle-and-migration"><img alt="Lifecycle: active" src="https://img.shields.io/static/v1?label=Lifecycle&message=active&labelColor=1E293B&color=166534"></a>
|
|
46
|
+
<a href="https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/50-community/swarmauri_billing_paystack/LICENSE"><img alt="License: Apache-2.0" src="https://img.shields.io/static/v1?label=License&message=Apache-2.0&labelColor=1E293B&color=86198F"></a>
|
|
47
|
+
<a href="https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/50-community/swarmauri_billing_paystack/NOTICE"><img alt="Notice: attribution" src="https://img.shields.io/static/v1?label=Notice&message=attribution&labelColor=1E293B&color=86198F"></a>
|
|
48
|
+
</p>
|
|
49
|
+
<p align="center">
|
|
50
|
+
<a href="https://pypi.org/project/swarmauri_billing_paystack/"><img alt="Monthly PyPI downloads: swarmauri_billing_paystack" src="https://img.shields.io/pypi/dm/swarmauri_billing_paystack?labelColor=1E293B&color=0E7490"></a>
|
|
51
|
+
<a href="https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/50-community/swarmauri_billing_paystack/README.md"><img alt="README hits: swarmauri_billing_paystack" src="https://hits.sh/github.com/swarmauri/swarmauri-sdk/pkgs/50-community/swarmauri_billing_paystack/README.md.svg?label=README%20hits&labelColor=1E293B&color=0E7490"></a>
|
|
52
|
+
</p>
|
|
53
|
+
<p align="center">
|
|
54
|
+
<a href="https://github.com/swarmauri/swarmauri-sdk/actions/workflows/readme-standards.yml"><img alt="README standards: CI gate" src="https://img.shields.io/static/v1?label=README%20standards&message=CI%20gate&labelColor=1E293B&color=1D4ED8"></a>
|
|
55
|
+
<a href="https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/50-community/swarmauri_billing_paystack/tests/unit/test_readme_sources.py"><img alt="Tests: example source" src="https://img.shields.io/static/v1?label=Tests&message=example%20source&labelColor=1E293B&color=0F766E"></a>
|
|
56
|
+
<a href="https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/50-community/swarmauri_billing_paystack/README.md#certification-status"><img alt="Certification: not certified" src="https://img.shields.io/static/v1?label=Certification&message=not%20certified&labelColor=1E293B&color=92400E"></a>
|
|
57
|
+
<a href="https://github.com/swarmauri/swarmauri-sdk/blob/master/tools/readme/POLICY.md"><img alt="Governance: repository policy" src="https://img.shields.io/static/v1?label=Governance&message=repository%20policy&labelColor=1E293B&color=4338CA"></a>
|
|
58
|
+
<a href="https://github.com/swarmauri/swarmauri-sdk/actions/workflows/readme-standards.yml"><img alt="Evidence: source and CI" src="https://img.shields.io/static/v1?label=Evidence&message=source%20and%20CI&labelColor=1E293B&color=6D28D9"></a>
|
|
59
|
+
</p>
|
|
60
|
+
<p align="center"><a href="#overview">Overview</a> · <a href="#installation">Installation</a> · <a href="#quick-start">Quick Start</a> · <a href="#usage">Usage</a> · <a href="#public-api-and-import-surfaces">API</a> · <a href="#contributing">Contributing</a> · <a href="#governance">Governance</a> · <a href="#license">License</a></p>
|
|
61
|
+
<!-- readme-standards:end branding -->
|
|
62
|
+
|
|
63
|
+
---
|
|
64
|
+
|
|
65
|
+
## Overview
|
|
66
|
+
|
|
67
|
+
### Summary
|
|
68
|
+
|
|
69
|
+
`swarmauri_billing_paystack` provides a Paystack-backed billing provider for the Swarmauri SDK. It connects Swarmauri billing interfaces to the `paystackapi` SDK for products, price-like product codes, hosted checkout, payment initialization, subscriptions, invoices, refunds, marketplace splits, split charges, disputes, and Paystack webhook HMAC verification.
|
|
70
|
+
|
|
71
|
+
### Why This Package
|
|
72
|
+
|
|
73
|
+
Use `swarmauri_billing_paystack` when a Swarmauri application needs Paystack payment flows without coupling business logic directly to Paystack SDK calls. The provider keeps Paystack products, transactions, subscriptions, invoices, refunds, splits, and risk checks behind the same Swarmauri billing interfaces used by other billing providers.
|
|
74
|
+
|
|
75
|
+
### When to Use
|
|
76
|
+
|
|
77
|
+
Choose `swarmauri_billing_paystack` when your integration needs paystack-backed Swarmauri billing provider for checkout, payment initialization, subscriptions, invoices, refunds, splits, and webhook verification. Match the imports below to your application boundary and install its declared dependencies before using the example.
|
|
78
|
+
|
|
79
|
+
### Features
|
|
80
|
+
|
|
81
|
+
- Paystack-backed provider class registered as `PaystackBillingProvider`.
|
|
82
|
+
- Product and price workflows built on Paystack product APIs.
|
|
83
|
+
- Hosted checkout and payment intent initialization through Paystack transactions.
|
|
84
|
+
- Subscription lifecycle methods for creating and disabling subscriptions.
|
|
85
|
+
- Invoice creation and notification-oriented invoice actions.
|
|
86
|
+
- Refund creation and lookup through Paystack refund APIs.
|
|
87
|
+
- Marketplace split creation and split-charge initialization.
|
|
88
|
+
- Paystack webhook signature verification with `X-Paystack-Signature` and HMAC-SHA512.
|
|
89
|
+
- Python 3.10, 3.11, 3.12, 3.13, and 3.14 support.
|
|
90
|
+
|
|
91
|
+
### Non-Goals
|
|
92
|
+
|
|
93
|
+
`swarmauri_billing_paystack` owns paystack-backed Swarmauri billing provider for checkout, payment initialization, subscriptions, invoices, refunds, splits, and webhook verification. Its imports do not by themselves configure credentials, deploy a service, or certify the behavior of its consumers. Dependencies and neighboring packages retain their own documented responsibilities.
|
|
94
|
+
|
|
95
|
+
---
|
|
96
|
+
|
|
97
|
+
## Getting Started
|
|
98
|
+
|
|
99
|
+
### Prerequisites
|
|
100
|
+
|
|
101
|
+
Python `>=3.10,<3.15` is required. The [manifest](https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/50-community/swarmauri_billing_paystack/pyproject.toml) declares runtime dependencies including `swarmauri-core`, `swarmauri-base`, `paystackapi`. Read the example’s inputs and service requirements before execution.
|
|
102
|
+
|
|
103
|
+
### Installation
|
|
104
|
+
|
|
105
|
+
Install with `uv`:
|
|
106
|
+
|
|
107
|
+
```bash
|
|
108
|
+
uv add swarmauri_billing_paystack
|
|
109
|
+
```
|
|
110
|
+
|
|
111
|
+
Install with `pip`:
|
|
112
|
+
|
|
113
|
+
```bash
|
|
114
|
+
pip install swarmauri_billing_paystack
|
|
115
|
+
```
|
|
116
|
+
|
|
117
|
+
#### uv
|
|
118
|
+
|
|
119
|
+
<!-- readme-standards:begin installation.uv -->
|
|
120
|
+
```bash
|
|
121
|
+
uv add swarmauri_billing_paystack
|
|
122
|
+
```
|
|
123
|
+
<!-- readme-standards:end installation.uv -->
|
|
124
|
+
|
|
125
|
+
#### pip
|
|
126
|
+
|
|
127
|
+
<!-- readme-standards:begin installation.pip -->
|
|
128
|
+
```bash
|
|
129
|
+
python -m pip install swarmauri_billing_paystack
|
|
130
|
+
```
|
|
131
|
+
<!-- readme-standards:end installation.pip -->
|
|
132
|
+
|
|
133
|
+
#### Poetry
|
|
134
|
+
|
|
135
|
+
<!-- readme-standards:begin installation.poetry -->
|
|
136
|
+
```bash
|
|
137
|
+
poetry add swarmauri_billing_paystack
|
|
138
|
+
```
|
|
139
|
+
<!-- readme-standards:end installation.poetry -->
|
|
140
|
+
|
|
141
|
+
### Quick Start
|
|
142
|
+
|
|
143
|
+
#### Example
|
|
144
|
+
|
|
145
|
+
<!-- readme-standards:begin example.quick-start -->
|
|
146
|
+
Source: [docs/readme/quick_start.py](https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/50-community/swarmauri_billing_paystack/docs/readme/quick_start.py).
|
|
147
|
+
|
|
148
|
+
```python
|
|
149
|
+
from swarmauri_billing_paystack import PaystackBillingProvider
|
|
150
|
+
from swarmauri_base.billing import CheckoutRequest, PriceSpec, ProductSpec
|
|
151
|
+
|
|
152
|
+
provider = PaystackBillingProvider(
|
|
153
|
+
api_key="paystack",
|
|
154
|
+
secret_key="sk_test_xxxxx",
|
|
155
|
+
)
|
|
156
|
+
|
|
157
|
+
product = provider.create_product(
|
|
158
|
+
ProductSpec(name="Learning Portal", description="Online academy access"),
|
|
159
|
+
idempotency_key="paystack-prod-001",
|
|
160
|
+
)
|
|
161
|
+
|
|
162
|
+
price = provider.create_price(
|
|
163
|
+
product,
|
|
164
|
+
PriceSpec(currency="NGN", unit_amount_minor=150000, nickname="Annual"),
|
|
165
|
+
idempotency_key="paystack-price-001",
|
|
166
|
+
)
|
|
167
|
+
|
|
168
|
+
checkout = provider.create_checkout(
|
|
169
|
+
price,
|
|
170
|
+
CheckoutRequest(
|
|
171
|
+
quantity=1,
|
|
172
|
+
success_url="https://merchant.example/paystack/callback",
|
|
173
|
+
customer_email="learner@example.com",
|
|
174
|
+
idempotency_key="paystack-checkout-001",
|
|
175
|
+
),
|
|
176
|
+
)
|
|
177
|
+
|
|
178
|
+
print(product.id, price.id, checkout.url)
|
|
179
|
+
```
|
|
180
|
+
<!-- readme-standards:end example.quick-start -->
|
|
181
|
+
|
|
182
|
+
#### Expected Result
|
|
183
|
+
|
|
184
|
+
The example demonstrates the documented `swarmauri_billing_paystack` source boundary or workflow. Complete its required configuration first. README CI checks the maintained source’s syntax and declarations; it does not claim that external services or the application workflow were exercised.
|
|
185
|
+
|
|
186
|
+
---
|
|
187
|
+
|
|
188
|
+
## Usage
|
|
189
|
+
|
|
190
|
+
### Common Workflows
|
|
191
|
+
|
|
192
|
+
<!-- readme-standards:begin example.usage -->
|
|
193
|
+
Source: [docs/readme/usage.py](https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/50-community/swarmauri_billing_paystack/docs/readme/usage.py).
|
|
194
|
+
|
|
195
|
+
```python
|
|
196
|
+
from swarmauri_billing_paystack import PaystackBillingProvider
|
|
197
|
+
from swarmauri_base.billing import CheckoutRequest, PriceSpec, ProductSpec
|
|
198
|
+
|
|
199
|
+
provider = PaystackBillingProvider(
|
|
200
|
+
api_key="paystack",
|
|
201
|
+
secret_key="sk_test_xxxxx",
|
|
202
|
+
)
|
|
203
|
+
|
|
204
|
+
product = provider.create_product(
|
|
205
|
+
ProductSpec(name="Learning Portal", description="Online academy access"),
|
|
206
|
+
idempotency_key="paystack-prod-001",
|
|
207
|
+
)
|
|
208
|
+
|
|
209
|
+
price = provider.create_price(
|
|
210
|
+
product,
|
|
211
|
+
PriceSpec(currency="NGN", unit_amount_minor=150000, nickname="Annual"),
|
|
212
|
+
idempotency_key="paystack-price-001",
|
|
213
|
+
)
|
|
214
|
+
|
|
215
|
+
checkout = provider.create_checkout(
|
|
216
|
+
price,
|
|
217
|
+
CheckoutRequest(
|
|
218
|
+
quantity=1,
|
|
219
|
+
success_url="https://merchant.example/paystack/callback",
|
|
220
|
+
customer_email="learner@example.com",
|
|
221
|
+
idempotency_key="paystack-checkout-001",
|
|
222
|
+
),
|
|
223
|
+
)
|
|
224
|
+
|
|
225
|
+
print(product.id, price.id, checkout.url)
|
|
226
|
+
```
|
|
227
|
+
<!-- readme-standards:end example.usage -->
|
|
228
|
+
|
|
229
|
+
Create a product, price, and Paystack checkout session:
|
|
230
|
+
|
|
231
|
+
|
|
232
|
+
Initialize a Paystack payment intent:
|
|
233
|
+
|
|
234
|
+
```python
|
|
235
|
+
from swarmauri_billing_paystack import PaystackBillingProvider
|
|
236
|
+
from swarmauri_base.billing import PaymentIntentRequest
|
|
237
|
+
|
|
238
|
+
provider = PaystackBillingProvider(
|
|
239
|
+
api_key="paystack",
|
|
240
|
+
secret_key="sk_test_xxxxx",
|
|
241
|
+
)
|
|
242
|
+
|
|
243
|
+
payment = provider.create_payment_intent(
|
|
244
|
+
PaymentIntentRequest(
|
|
245
|
+
amount_minor=500000,
|
|
246
|
+
currency="NGN",
|
|
247
|
+
idempotency_key="paystack-payment-001",
|
|
248
|
+
metadata={"order_id": "order-1001"},
|
|
249
|
+
)
|
|
250
|
+
)
|
|
251
|
+
|
|
252
|
+
print(payment.id, payment.status)
|
|
253
|
+
```
|
|
254
|
+
|
|
255
|
+
Verify a Paystack webhook signature:
|
|
256
|
+
|
|
257
|
+
```python
|
|
258
|
+
from swarmauri_billing_paystack import PaystackBillingProvider
|
|
259
|
+
|
|
260
|
+
provider = PaystackBillingProvider(
|
|
261
|
+
api_key="paystack",
|
|
262
|
+
secret_key="sk_test_xxxxx",
|
|
263
|
+
)
|
|
264
|
+
|
|
265
|
+
is_valid = provider.verify_webhook_signature(
|
|
266
|
+
raw_body=b'{"event":"charge.success"}',
|
|
267
|
+
headers={"X-Paystack-Signature": "expected-hmac"},
|
|
268
|
+
secret="sk_test_xxxxx",
|
|
269
|
+
)
|
|
270
|
+
|
|
271
|
+
print(is_valid)
|
|
272
|
+
```
|
|
273
|
+
|
|
274
|
+
### Configuration
|
|
275
|
+
|
|
276
|
+
Configure `swarmauri_billing_paystack` through the APIs in [package source](https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/50-community/swarmauri_billing_paystack/swarmauri_billing_paystack/__init__.py); its [manifest](https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/50-community/swarmauri_billing_paystack/pyproject.toml) describes installation requirements, not an implicit service configuration. No additional package-global configuration contract is inferred from dependencies.
|
|
277
|
+
|
|
278
|
+
### Error Handling
|
|
279
|
+
|
|
280
|
+
The inspected `swarmauri_billing_paystack` source raises `RuntimeError`, `ValueError`. Handle these at the calling boundary and consult the implementation for the triggering conditions.
|
|
281
|
+
|
|
282
|
+
### Best Practices
|
|
283
|
+
|
|
284
|
+
Use the explicit `swarmauri_billing_paystack` imports documented below and keep collaborator configuration with the caller. Run the package’s relevant tests after changing `PaystackBillingProvider`; an import or successful installation alone does not establish its runtime guarantees.
|
|
285
|
+
|
|
286
|
+
---
|
|
287
|
+
|
|
288
|
+
## Package Boundary
|
|
289
|
+
|
|
290
|
+
### What It Owns
|
|
291
|
+
|
|
292
|
+
`swarmauri_billing_paystack` is located in `community` and owns paystack-backed Swarmauri billing provider for checkout, payment initialization, subscriptions, invoices, refunds, splits, and webhook verification. Source-declared APIs include `PaystackBillingProvider`. The [manifest](https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/50-community/swarmauri_billing_paystack/pyproject.toml) records its direct dependency boundary.
|
|
293
|
+
|
|
294
|
+
### Public API and Import Surfaces
|
|
295
|
+
|
|
296
|
+
Import namespace: `swarmauri_billing_paystack`.
|
|
297
|
+
|
|
298
|
+
Source-declared exports or types: `PaystackBillingProvider`.
|
|
299
|
+
|
|
300
|
+
Inspect [package source](https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/50-community/swarmauri_billing_paystack/swarmauri_billing_paystack/__init__.py) for exact signatures; this inventory does not designate every internal module as stable.
|
|
301
|
+
|
|
302
|
+
### Entry Points
|
|
303
|
+
|
|
304
|
+
<!-- readme-standards:begin entry-points -->
|
|
305
|
+
- `swarmauri.billing_providers` → `PaystackBillingProvider` → `swarmauri_billing_paystack.provider:PaystackBillingProvider`
|
|
306
|
+
<!-- readme-standards:end entry-points -->
|
|
307
|
+
|
|
308
|
+
The package exposes a Swarmauri billing provider entry point:
|
|
309
|
+
|
|
310
|
+
```toml
|
|
311
|
+
[project.entry-points.'swarmauri.billing_providers']
|
|
312
|
+
PaystackBillingProvider = "swarmauri_billing_paystack.provider:PaystackBillingProvider"
|
|
313
|
+
```
|
|
314
|
+
|
|
315
|
+
### Injected Dependencies
|
|
316
|
+
|
|
317
|
+
The direct installation dependencies of `swarmauri_billing_paystack` are `swarmauri-core`, `swarmauri-base`, `paystackapi`. These declarations do not imply automatic provider selection. Pass collaborators through the explicit constructors or call signatures in [package source](https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/50-community/swarmauri_billing_paystack/swarmauri_billing_paystack/__init__.py).
|
|
318
|
+
|
|
319
|
+
### Protocol Consumers
|
|
320
|
+
|
|
321
|
+
No direct package-manifest dependency on `swarmauri_billing_paystack` was found in the audited three-repository inventory. External consumers may still use its documented imports or commands.
|
|
322
|
+
|
|
323
|
+
### Extensions
|
|
324
|
+
|
|
325
|
+
For `swarmauri_billing_paystack`, use the source-declared public interfaces (`PaystackBillingProvider`) when composing or extending behavior. Its entry-point section below is authoritative for registered plugins; no additional extension loader is inferred from the package name.
|
|
326
|
+
|
|
327
|
+
---
|
|
328
|
+
|
|
329
|
+
## Operations and Readiness
|
|
330
|
+
|
|
331
|
+
### Operational Requirements
|
|
332
|
+
|
|
333
|
+
Operate `swarmauri_billing_paystack` according to its actual entry points and collaborators. The dependency and Python requirements in the [manifest](https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/50-community/swarmauri_billing_paystack/pyproject.toml) are prerequisites; deployment topology, credentials, and readiness remain the responsibility of the consuming application unless explicitly documented above.
|
|
334
|
+
|
|
335
|
+
### Health and Observability
|
|
336
|
+
|
|
337
|
+
This README does not establish a standalone health endpoint for `swarmauri_billing_paystack`. Observe the concrete caller’s results, exceptions, and existing test reports. An application that embeds this package must define its own health and telemetry contract.
|
|
338
|
+
|
|
339
|
+
### Security and Resource Limits
|
|
340
|
+
|
|
341
|
+
Apply the input, credential, and resource constraints implemented in [package source](https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/50-community/swarmauri_billing_paystack/swarmauri_billing_paystack/__init__.py). The `swarmauri_billing_paystack` README gate is a documentation check, not a security review or a substitute for the implementation’s limits and caller authorization.
|
|
342
|
+
|
|
343
|
+
### Compatibility
|
|
344
|
+
|
|
345
|
+
This source version of `swarmauri_billing_paystack` declares Python `>=3.10,<3.15`. Consult its dependency constraints before upgrading. Source-version and registry-version badges have separate meanings; this migration makes no additional platform or interoperability certification claim.
|
|
346
|
+
|
|
347
|
+
---
|
|
348
|
+
|
|
349
|
+
## Verification
|
|
350
|
+
|
|
351
|
+
### Tests
|
|
352
|
+
|
|
353
|
+
Run `python -m pytest tests/unit/test_readme_sources.py` from the `swarmauri_billing_paystack` package directory for the maintained example source checks (Python compilation and non-Python file presence). Behavioral tests may live in the repository’s shared suites; the new README syntax test is not presented as runtime coverage for paystack-backed Swarmauri billing provider for checkout, payment initialization, subscriptions, invoices, refunds, splits, and webhook verification.
|
|
354
|
+
|
|
355
|
+
The repository README gate also checks the required heading tree, metadata, managed fragments, and referenced files.
|
|
356
|
+
|
|
357
|
+
### Certification Status
|
|
358
|
+
|
|
359
|
+
No external certification is asserted for `swarmauri_billing_paystack` by this documentation migration. README conformance, example syntax, runtime tests, and protocol or security certification are distinct evidence scopes.
|
|
360
|
+
|
|
361
|
+
### Evidence
|
|
362
|
+
|
|
363
|
+
The [README standards CI](https://github.com/swarmauri/swarmauri-sdk/actions/workflows/readme-standards.yml) records mechanical documentation results for its tested commit. The [package source](https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/50-community/swarmauri_billing_paystack/swarmauri_billing_paystack/__init__.py) and example sources support the package-boundary description; external runtime behavior requires its own test evidence.
|
|
364
|
+
|
|
365
|
+
---
|
|
366
|
+
|
|
367
|
+
## FAQ
|
|
368
|
+
|
|
369
|
+
### Why
|
|
370
|
+
|
|
371
|
+
**Q: Does this package call live Paystack APIs?**
|
|
372
|
+
|
|
373
|
+
A: Yes. The provider imports `paystackapi`, sets `Paystack.SECRET_KEY`, and calls SDK classes such as `Transaction`, `Product`, `Subscription`, `Invoice`, `TransactionSplit`, `Refund`, and `Dispute`.
|
|
374
|
+
|
|
375
|
+
**Q: Which Swarmauri billing flows does it support?**
|
|
376
|
+
|
|
377
|
+
A: It supports product creation, price-like product creation, hosted checkout, payment initialization, subscription create/cancel, invoice create/finalize/archive/uncollectible flows, refund create/fetch, marketplace split creation, split charges, dispute listing, and webhook signature verification.
|
|
378
|
+
|
|
379
|
+
**Q: What credential does it need?**
|
|
380
|
+
|
|
381
|
+
A: Pass a Paystack secret key through `secret_key`. Tests and examples use sandbox-style keys such as `sk_test_...`; production deployments should load secrets from a secure environment or vault.
|
|
382
|
+
|
|
383
|
+
### How
|
|
384
|
+
|
|
385
|
+
**How do I start?** Install or synchronize the environment under Getting Started, follow the maintained example for `swarmauri_billing_paystack`, and consult [package source](https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/50-community/swarmauri_billing_paystack/swarmauri_billing_paystack/__init__.py) for the exact types and signatures involved.
|
|
386
|
+
|
|
387
|
+
### When
|
|
388
|
+
|
|
389
|
+
**When should I validate an upgrade?** Recheck `swarmauri_billing_paystack` whenever its source version, declared collaborators, configuration, or caller changes. Run relevant behavioral tests in addition to the README gate before promotion.
|
|
390
|
+
|
|
391
|
+
---
|
|
392
|
+
|
|
393
|
+
## Documentation and Related Packages
|
|
394
|
+
|
|
395
|
+
### More Documentation
|
|
396
|
+
|
|
397
|
+
- [Paystack provider source](swarmauri_billing_paystack/provider.py)
|
|
398
|
+
- [Swarmauri SDK repository](https://github.com/swarmauri/swarmauri-sdk)
|
|
399
|
+
- [Paystack API documentation](https://paystack.com/docs/api/)
|
|
400
|
+
|
|
401
|
+
### Related Packages
|
|
402
|
+
|
|
403
|
+
Billing provider packages:
|
|
404
|
+
|
|
405
|
+
- [swarmauri_billing_adyen](https://pypi.org/project/swarmauri_billing_adyen/)
|
|
406
|
+
- [swarmauri_billing_authorize_net](https://pypi.org/project/swarmauri_billing_authorize_net/)
|
|
407
|
+
- [swarmauri_billing_braintree](https://pypi.org/project/swarmauri_billing_braintree/)
|
|
408
|
+
- [swarmauri_billing_mock](https://pypi.org/project/swarmauri_billing_mock/)
|
|
409
|
+
- [swarmauri_billing_paypal](https://pypi.org/project/swarmauri_billing_paypal/)
|
|
410
|
+
- [swarmauri_billing_razorpay](https://pypi.org/project/swarmauri_billing_razorpay/)
|
|
411
|
+
- [swarmauri_billing_square](https://pypi.org/project/swarmauri_billing_square/)
|
|
412
|
+
- [swarmauri_billing_stripe](https://pypi.org/project/swarmauri_billing_stripe/)
|
|
413
|
+
|
|
414
|
+
Foundational packages:
|
|
415
|
+
|
|
416
|
+
- [swarmauri_core](https://pypi.org/project/swarmauri_core/) defines billing capabilities and interfaces.
|
|
417
|
+
- [swarmauri_base](https://pypi.org/project/swarmauri_base/) provides billing specs, refs, mixins, and `BillingProviderBase`.
|
|
418
|
+
- [swarmauri](https://pypi.org/project/swarmauri/) provides namespace imports and plugin discovery.
|
|
419
|
+
|
|
420
|
+
### Project Links
|
|
421
|
+
|
|
422
|
+
<!-- readme-standards:begin project-links -->
|
|
423
|
+
- [pypi: swarmauri_billing_paystack](https://pypi.org/project/swarmauri_billing_paystack/)
|
|
424
|
+
<!-- readme-standards:end project-links -->
|
|
425
|
+
|
|
426
|
+
---
|
|
427
|
+
|
|
428
|
+
## Contributing
|
|
429
|
+
|
|
430
|
+
### How to Contribute
|
|
431
|
+
|
|
432
|
+
Contributions that expand Paystack coverage or improve resiliency are welcome. Include request and response traces with secrets redacted, update usage examples, and add tests for each billing capability you change.
|
|
433
|
+
|
|
434
|
+
### Development Setup
|
|
435
|
+
|
|
436
|
+
Work from the `pkgs/50-community/swarmauri_billing_paystack` checkout. Synchronize its declared development environment with uv, then run the relevant package tests and `python -m pytest tests/unit/test_readme_sources.py`. The repository’s dedicated README job installs `readme-standards==0.1.3` without resolving unrelated runtime packages.
|
|
437
|
+
|
|
438
|
+
### Notes for Maintainers
|
|
439
|
+
|
|
440
|
+
**Important Scope Notes**
|
|
441
|
+
|
|
442
|
+
This package uses Paystack SDK calls for provider operations. Network access, Paystack credentials, API availability, account configuration, and Paystack response formats affect runtime behavior. Use sandbox keys for development and isolate live credentials through deployment secrets.
|
|
443
|
+
|
|
444
|
+
---
|
|
445
|
+
|
|
446
|
+
## Governance
|
|
447
|
+
|
|
448
|
+
### Ownership and Decision Making
|
|
449
|
+
|
|
450
|
+
Changes to `swarmauri_billing_paystack` follow the maintainer review process of [swarmauri/swarmauri-sdk](https://github.com/swarmauri/swarmauri-sdk) and its contribution guide. Author attribution remains in the [manifest](https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/50-community/swarmauri_billing_paystack/pyproject.toml); this README does not assign new publishing or administrative authority.
|
|
451
|
+
|
|
452
|
+
### Standards and Policies
|
|
453
|
+
|
|
454
|
+
`swarmauri_billing_paystack` follows the versioned [package-guide-v1 outline](https://github.com/groupsum/readme-standards/blob/master/docs/outline.md). All fixed headings, hierarchy, order, separators, and package-specific branding are checked by CI; reviewers assess the accuracy and usefulness of authored claims.
|
|
455
|
+
|
|
456
|
+
### Lifecycle and Migration
|
|
457
|
+
|
|
458
|
+
The `swarmauri_billing_paystack` source version is `0.11.0`.
|
|
459
|
+
|
|
460
|
+
---
|
|
461
|
+
|
|
462
|
+
## License and Attribution
|
|
463
|
+
|
|
464
|
+
### License
|
|
465
|
+
|
|
466
|
+
<!-- readme-standards:begin license -->
|
|
467
|
+
Licensed under `Apache-2.0`. See [LICENSE](https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/50-community/swarmauri_billing_paystack/LICENSE).
|
|
468
|
+
<!-- readme-standards:end license -->
|
|
469
|
+
|
|
470
|
+
Apache-2.0
|
|
471
|
+
|
|
472
|
+
### Notices
|
|
473
|
+
|
|
474
|
+
<!-- readme-standards:begin notices -->
|
|
475
|
+
See [NOTICE](https://github.com/swarmauri/swarmauri-sdk/blob/master/pkgs/50-community/swarmauri_billing_paystack/NOTICE) for attribution.
|
|
476
|
+
<!-- readme-standards:end notices -->
|
|
477
|
+
|