swarmauri_billing_paypal 0.1.3.dev3__tar.gz → 0.11.0.dev1__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_paypal-0.11.0.dev1/PKG-INFO +195 -0
- swarmauri_billing_paypal-0.11.0.dev1/README.md +160 -0
- {swarmauri_billing_paypal-0.1.3.dev3 → swarmauri_billing_paypal-0.11.0.dev1}/pyproject.toml +22 -4
- swarmauri_billing_paypal-0.11.0.dev1/swarmauri_billing_paypal/provider.py +695 -0
- swarmauri_billing_paypal-0.1.3.dev3/PKG-INFO +0 -100
- swarmauri_billing_paypal-0.1.3.dev3/README.md +0 -70
- swarmauri_billing_paypal-0.1.3.dev3/swarmauri_billing_paypal/provider.py +0 -383
- {swarmauri_billing_paypal-0.1.3.dev3 → swarmauri_billing_paypal-0.11.0.dev1}/LICENSE +0 -0
- {swarmauri_billing_paypal-0.1.3.dev3 → swarmauri_billing_paypal-0.11.0.dev1}/swarmauri_billing_paypal/__init__.py +0 -0
|
@@ -0,0 +1,195 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: swarmauri_billing_paypal
|
|
3
|
+
Version: 0.11.0.dev1
|
|
4
|
+
Summary: PayPal REST backed Swarmauri billing provider for products, plans, orders, captures, refunds, subscriptions, invoices, payouts, disputes, and webhooks.
|
|
5
|
+
License-Expression: Apache-2.0
|
|
6
|
+
License-File: LICENSE
|
|
7
|
+
Keywords: swarmauri,sdk,billing,paypal,paypal billing provider,paypal payments,community,payments,payment gateway,checkout,hosted checkout,paypal rest api,orders,captures,invoicing,payouts,refunds,customer disputes,webhook signature verification,webhooks,subscription management,merchant services,e-commerce integration
|
|
8
|
+
Author: Jacob Stewart
|
|
9
|
+
Author-email: jacob@swarmauri.com
|
|
10
|
+
Requires-Python: >=3.10,<3.15
|
|
11
|
+
Classifier: Development Status :: 1 - Planning
|
|
12
|
+
Classifier: Intended Audience :: Developers
|
|
13
|
+
Classifier: Intended Audience :: Information Technology
|
|
14
|
+
Classifier: License :: OSI Approved :: Apache Software License
|
|
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: Topic :: Software Development :: Testing
|
|
22
|
+
Classifier: Programming Language :: Python
|
|
23
|
+
Classifier: Programming Language :: Python :: 3
|
|
24
|
+
Classifier: Programming Language :: Python :: 3 :: Only
|
|
25
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
26
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
27
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
28
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
29
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
30
|
+
Requires-Dist: httpx (>=0.27)
|
|
31
|
+
Requires-Dist: swarmauri_base
|
|
32
|
+
Requires-Dist: swarmauri_core
|
|
33
|
+
Description-Content-Type: text/markdown
|
|
34
|
+
|
|
35
|
+

|
|
36
|
+
|
|
37
|
+
<p align="center">
|
|
38
|
+
<a href="https://pepy.tech/project/swarmauri_billing_paypal/">
|
|
39
|
+
<img src="https://static.pepy.tech/badge/swarmauri_billing_paypal/month" alt="PyPI - Downloads"/></a>
|
|
40
|
+
<a href="https://hits.sh/github.com/swarmauri/swarmauri-sdk/tree/master/pkgs/community/swarmauri_billing_paypal/">
|
|
41
|
+
<img alt="Hits" src="https://hits.sh/github.com/swarmauri/swarmauri-sdk/tree/master/pkgs/community/swarmauri_billing_paypal.svg"/></a>
|
|
42
|
+
<a href="https://pypi.org/project/swarmauri_billing_paypal/">
|
|
43
|
+
<img src="https://img.shields.io/badge/python-3.10%20%7C%203.11%20%7C%203.12%20%7C%203.13%20%7C%203.14-blue" alt="PyPI - Python Version"/></a>
|
|
44
|
+
<a href="https://pypi.org/project/swarmauri_billing_paypal/">
|
|
45
|
+
<img src="https://img.shields.io/pypi/l/swarmauri_billing_paypal" alt="PyPI - License"/></a>
|
|
46
|
+
<a href="https://pypi.org/project/swarmauri_billing_paypal/">
|
|
47
|
+
<img src="https://img.shields.io/pypi/v/swarmauri_billing_paypal?label=swarmauri_billing_paypal&color=green" alt="PyPI - swarmauri_billing_paypal"/></a>
|
|
48
|
+
<a href="https://discord.gg/N4UpBuQv8T">
|
|
49
|
+
<img src="https://img.shields.io/badge/Discord-Join%20Chat-5865F2?logo=discord&logoColor=white" alt="Discord"/></a></p>
|
|
50
|
+
|
|
51
|
+
# Swarmauri Billing PayPal
|
|
52
|
+
|
|
53
|
+
`swarmauri_billing_paypal` provides a PayPal REST backed billing provider for Swarmauri checkout, payment, subscription, invoicing, refund, payout, reporting, dispute, and webhook workflows. It connects Swarmauri billing interfaces to PayPal products, billing plans, Checkout Orders, captures, authorisation voids, refunds, subscriptions, invoices, payouts, customer disputes, webhook signature verification, and webhook event parsing.
|
|
54
|
+
|
|
55
|
+
## Why Swarmauri Billing PayPal?
|
|
56
|
+
|
|
57
|
+
`swarmauri_billing_paypal` lets Swarmauri billing workflows use PayPal REST APIs behind provider-neutral billing interfaces. Application code can create orders, capture payments, refund captures, send invoices, start payouts, verify webhook signatures, list customer disputes, and parse webhook events without hard-coding PayPal REST payloads throughout the codebase.
|
|
58
|
+
|
|
59
|
+
## FAQ
|
|
60
|
+
|
|
61
|
+
### Q: Does this package call live PayPal APIs?
|
|
62
|
+
|
|
63
|
+
A: Yes. It uses PayPal OAuth client credentials and calls PayPal REST endpoints for products, plans, orders, captures, voids, refunds, subscriptions, invoices, and payouts.
|
|
64
|
+
|
|
65
|
+
### Q: Which Swarmauri billing capabilities does it cover?
|
|
66
|
+
|
|
67
|
+
A: It covers products, plan-like prices, hosted checkout orders, online orders, capture, authorization void, subscriptions, invoicing, refunds, payouts, customer dispute listing, PayPal webhook signature verification, and webhook event parsing. Customer, payment-method, balance, and report helpers remain compatibility placeholders where PayPal does not expose the same direct Swarmauri object shape.
|
|
68
|
+
|
|
69
|
+
### Q: When should I use this package?
|
|
70
|
+
|
|
71
|
+
A: Use it for local billing workflows, provider strategy tests, documentation examples, and contract tests that need PayPal-style behavior through Swarmauri billing abstractions.
|
|
72
|
+
|
|
73
|
+
## Features
|
|
74
|
+
|
|
75
|
+
- PayPal provider class registered as `PayPalBillingProvider`.
|
|
76
|
+
- OAuth client credentials authentication for sandbox or production.
|
|
77
|
+
- Product and billing-plan creation.
|
|
78
|
+
- Checkout Order creation with approval URL extraction.
|
|
79
|
+
- Order capture and authorization void support.
|
|
80
|
+
- Refund creation and lookup.
|
|
81
|
+
- Subscription create/cancel support.
|
|
82
|
+
- Invoice create/send/cancel support.
|
|
83
|
+
- Payout batch creation.
|
|
84
|
+
- Customer dispute listing through PayPal's customer disputes API.
|
|
85
|
+
- PayPal webhook signature verification through PayPal's verification endpoint.
|
|
86
|
+
- PayPal webhook JSON event parsing.
|
|
87
|
+
- Python 3.10, 3.11, 3.12, 3.13, and 3.14 support.
|
|
88
|
+
|
|
89
|
+
## Installation
|
|
90
|
+
|
|
91
|
+
Install with `uv`:
|
|
92
|
+
|
|
93
|
+
```bash
|
|
94
|
+
uv add swarmauri_billing_paypal
|
|
95
|
+
```
|
|
96
|
+
|
|
97
|
+
Install with `pip`:
|
|
98
|
+
|
|
99
|
+
```bash
|
|
100
|
+
pip install swarmauri_billing_paypal
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
## Usage
|
|
104
|
+
|
|
105
|
+
Create a product, price, and PayPal-style checkout session:
|
|
106
|
+
|
|
107
|
+
```python
|
|
108
|
+
from swarmauri_billing_paypal import PayPalBillingProvider
|
|
109
|
+
from swarmauri_base.billing import CheckoutRequest, PriceSpec, ProductSpec
|
|
110
|
+
|
|
111
|
+
provider = PayPalBillingProvider(
|
|
112
|
+
api_key="paypal",
|
|
113
|
+
client_id="paypal-client-id",
|
|
114
|
+
client_secret="paypal-client-secret",
|
|
115
|
+
)
|
|
116
|
+
|
|
117
|
+
product = provider.create_product(
|
|
118
|
+
ProductSpec(name="Workspace"),
|
|
119
|
+
idempotency_key="paypal-prod-1",
|
|
120
|
+
)
|
|
121
|
+
price = provider.create_price(
|
|
122
|
+
product,
|
|
123
|
+
PriceSpec(currency="USD", unit_amount_minor=2500),
|
|
124
|
+
idempotency_key="paypal-price-1",
|
|
125
|
+
)
|
|
126
|
+
checkout = provider.create_checkout(
|
|
127
|
+
price,
|
|
128
|
+
CheckoutRequest(success_url="https://example.com/return"),
|
|
129
|
+
)
|
|
130
|
+
|
|
131
|
+
print(product.id, price.id, checkout.url)
|
|
132
|
+
```
|
|
133
|
+
|
|
134
|
+
Create and capture a PayPal-style payment:
|
|
135
|
+
|
|
136
|
+
```python
|
|
137
|
+
from swarmauri_billing_paypal import PayPalBillingProvider
|
|
138
|
+
from swarmauri_base.billing import PaymentIntentRequest
|
|
139
|
+
|
|
140
|
+
provider = PayPalBillingProvider(
|
|
141
|
+
api_key="paypal",
|
|
142
|
+
client_id="paypal-client-id",
|
|
143
|
+
client_secret="paypal-client-secret",
|
|
144
|
+
)
|
|
145
|
+
|
|
146
|
+
payment = provider.create_payment_intent(
|
|
147
|
+
PaymentIntentRequest(amount_minor=1500, currency="USD", confirm=True)
|
|
148
|
+
)
|
|
149
|
+
captured = provider.capture_payment(payment.id, idempotency_key="paypal-capture-1")
|
|
150
|
+
|
|
151
|
+
print(payment.status, captured.status)
|
|
152
|
+
```
|
|
153
|
+
|
|
154
|
+
## Important Scope Notes
|
|
155
|
+
|
|
156
|
+
This package uses live PayPal REST API calls for products, plans, orders, captures, voids, refunds, subscriptions, invoices, payouts, customer disputes, webhook signature verification, and webhook parsing. Production use requires PayPal REST app credentials, correct sandbox or production environment selection, a configured PayPal webhook ID for signature verification, and account permissions for each enabled PayPal product.
|
|
157
|
+
|
|
158
|
+
## Entry Point
|
|
159
|
+
|
|
160
|
+
The package exposes a Swarmauri billing provider entry point:
|
|
161
|
+
|
|
162
|
+
```toml
|
|
163
|
+
[project.entry-points.'swarmauri.billing_providers']
|
|
164
|
+
PayPalBillingProvider = "swarmauri_billing_paypal.provider:PayPalBillingProvider"
|
|
165
|
+
```
|
|
166
|
+
|
|
167
|
+
## Related Packages
|
|
168
|
+
|
|
169
|
+
Billing provider packages:
|
|
170
|
+
|
|
171
|
+
- [swarmauri_billing_adyen](https://pypi.org/project/swarmauri_billing_adyen/)
|
|
172
|
+
- [swarmauri_billing_authorize_net](https://pypi.org/project/swarmauri_billing_authorize_net/)
|
|
173
|
+
- [swarmauri_billing_braintree](https://pypi.org/project/swarmauri_billing_braintree/)
|
|
174
|
+
- [swarmauri_billing_mock](https://pypi.org/project/swarmauri_billing_mock/)
|
|
175
|
+
- [swarmauri_billing_paystack](https://pypi.org/project/swarmauri_billing_paystack/)
|
|
176
|
+
- [swarmauri_billing_razorpay](https://pypi.org/project/swarmauri_billing_razorpay/)
|
|
177
|
+
- [swarmauri_billing_square](https://pypi.org/project/swarmauri_billing_square/)
|
|
178
|
+
- [swarmauri_billing_stripe](https://pypi.org/project/swarmauri_billing_stripe/)
|
|
179
|
+
|
|
180
|
+
Foundational packages:
|
|
181
|
+
|
|
182
|
+
- [swarmauri_core](https://pypi.org/project/swarmauri_core/) defines billing capabilities and interfaces.
|
|
183
|
+
- [swarmauri_base](https://pypi.org/project/swarmauri_base/) provides billing specs, refs, mixins, and `BillingProviderBase`.
|
|
184
|
+
- [swarmauri](https://pypi.org/project/swarmauri/) provides namespace imports and plugin discovery.
|
|
185
|
+
|
|
186
|
+
## License
|
|
187
|
+
|
|
188
|
+
Apache-2.0
|
|
189
|
+
|
|
190
|
+
## Contributing
|
|
191
|
+
|
|
192
|
+
If you connect this provider to live PayPal APIs, preserve deterministic tests, document required credentials and webhook behavior, and add coverage for each supported billing capability.
|
|
193
|
+
|
|
194
|
+
|
|
195
|
+
|
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+

|
|
2
|
+
|
|
3
|
+
<p align="center">
|
|
4
|
+
<a href="https://pepy.tech/project/swarmauri_billing_paypal/">
|
|
5
|
+
<img src="https://static.pepy.tech/badge/swarmauri_billing_paypal/month" alt="PyPI - Downloads"/></a>
|
|
6
|
+
<a href="https://hits.sh/github.com/swarmauri/swarmauri-sdk/tree/master/pkgs/community/swarmauri_billing_paypal/">
|
|
7
|
+
<img alt="Hits" src="https://hits.sh/github.com/swarmauri/swarmauri-sdk/tree/master/pkgs/community/swarmauri_billing_paypal.svg"/></a>
|
|
8
|
+
<a href="https://pypi.org/project/swarmauri_billing_paypal/">
|
|
9
|
+
<img src="https://img.shields.io/badge/python-3.10%20%7C%203.11%20%7C%203.12%20%7C%203.13%20%7C%203.14-blue" alt="PyPI - Python Version"/></a>
|
|
10
|
+
<a href="https://pypi.org/project/swarmauri_billing_paypal/">
|
|
11
|
+
<img src="https://img.shields.io/pypi/l/swarmauri_billing_paypal" alt="PyPI - License"/></a>
|
|
12
|
+
<a href="https://pypi.org/project/swarmauri_billing_paypal/">
|
|
13
|
+
<img src="https://img.shields.io/pypi/v/swarmauri_billing_paypal?label=swarmauri_billing_paypal&color=green" alt="PyPI - swarmauri_billing_paypal"/></a>
|
|
14
|
+
<a href="https://discord.gg/N4UpBuQv8T">
|
|
15
|
+
<img src="https://img.shields.io/badge/Discord-Join%20Chat-5865F2?logo=discord&logoColor=white" alt="Discord"/></a></p>
|
|
16
|
+
|
|
17
|
+
# Swarmauri Billing PayPal
|
|
18
|
+
|
|
19
|
+
`swarmauri_billing_paypal` provides a PayPal REST backed billing provider for Swarmauri checkout, payment, subscription, invoicing, refund, payout, reporting, dispute, and webhook workflows. It connects Swarmauri billing interfaces to PayPal products, billing plans, Checkout Orders, captures, authorisation voids, refunds, subscriptions, invoices, payouts, customer disputes, webhook signature verification, and webhook event parsing.
|
|
20
|
+
|
|
21
|
+
## Why Swarmauri Billing PayPal?
|
|
22
|
+
|
|
23
|
+
`swarmauri_billing_paypal` lets Swarmauri billing workflows use PayPal REST APIs behind provider-neutral billing interfaces. Application code can create orders, capture payments, refund captures, send invoices, start payouts, verify webhook signatures, list customer disputes, and parse webhook events without hard-coding PayPal REST payloads throughout the codebase.
|
|
24
|
+
|
|
25
|
+
## FAQ
|
|
26
|
+
|
|
27
|
+
### Q: Does this package call live PayPal APIs?
|
|
28
|
+
|
|
29
|
+
A: Yes. It uses PayPal OAuth client credentials and calls PayPal REST endpoints for products, plans, orders, captures, voids, refunds, subscriptions, invoices, and payouts.
|
|
30
|
+
|
|
31
|
+
### Q: Which Swarmauri billing capabilities does it cover?
|
|
32
|
+
|
|
33
|
+
A: It covers products, plan-like prices, hosted checkout orders, online orders, capture, authorization void, subscriptions, invoicing, refunds, payouts, customer dispute listing, PayPal webhook signature verification, and webhook event parsing. Customer, payment-method, balance, and report helpers remain compatibility placeholders where PayPal does not expose the same direct Swarmauri object shape.
|
|
34
|
+
|
|
35
|
+
### Q: When should I use this package?
|
|
36
|
+
|
|
37
|
+
A: Use it for local billing workflows, provider strategy tests, documentation examples, and contract tests that need PayPal-style behavior through Swarmauri billing abstractions.
|
|
38
|
+
|
|
39
|
+
## Features
|
|
40
|
+
|
|
41
|
+
- PayPal provider class registered as `PayPalBillingProvider`.
|
|
42
|
+
- OAuth client credentials authentication for sandbox or production.
|
|
43
|
+
- Product and billing-plan creation.
|
|
44
|
+
- Checkout Order creation with approval URL extraction.
|
|
45
|
+
- Order capture and authorization void support.
|
|
46
|
+
- Refund creation and lookup.
|
|
47
|
+
- Subscription create/cancel support.
|
|
48
|
+
- Invoice create/send/cancel support.
|
|
49
|
+
- Payout batch creation.
|
|
50
|
+
- Customer dispute listing through PayPal's customer disputes API.
|
|
51
|
+
- PayPal webhook signature verification through PayPal's verification endpoint.
|
|
52
|
+
- PayPal webhook JSON event parsing.
|
|
53
|
+
- Python 3.10, 3.11, 3.12, 3.13, and 3.14 support.
|
|
54
|
+
|
|
55
|
+
## Installation
|
|
56
|
+
|
|
57
|
+
Install with `uv`:
|
|
58
|
+
|
|
59
|
+
```bash
|
|
60
|
+
uv add swarmauri_billing_paypal
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
Install with `pip`:
|
|
64
|
+
|
|
65
|
+
```bash
|
|
66
|
+
pip install swarmauri_billing_paypal
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
## Usage
|
|
70
|
+
|
|
71
|
+
Create a product, price, and PayPal-style checkout session:
|
|
72
|
+
|
|
73
|
+
```python
|
|
74
|
+
from swarmauri_billing_paypal import PayPalBillingProvider
|
|
75
|
+
from swarmauri_base.billing import CheckoutRequest, PriceSpec, ProductSpec
|
|
76
|
+
|
|
77
|
+
provider = PayPalBillingProvider(
|
|
78
|
+
api_key="paypal",
|
|
79
|
+
client_id="paypal-client-id",
|
|
80
|
+
client_secret="paypal-client-secret",
|
|
81
|
+
)
|
|
82
|
+
|
|
83
|
+
product = provider.create_product(
|
|
84
|
+
ProductSpec(name="Workspace"),
|
|
85
|
+
idempotency_key="paypal-prod-1",
|
|
86
|
+
)
|
|
87
|
+
price = provider.create_price(
|
|
88
|
+
product,
|
|
89
|
+
PriceSpec(currency="USD", unit_amount_minor=2500),
|
|
90
|
+
idempotency_key="paypal-price-1",
|
|
91
|
+
)
|
|
92
|
+
checkout = provider.create_checkout(
|
|
93
|
+
price,
|
|
94
|
+
CheckoutRequest(success_url="https://example.com/return"),
|
|
95
|
+
)
|
|
96
|
+
|
|
97
|
+
print(product.id, price.id, checkout.url)
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
Create and capture a PayPal-style payment:
|
|
101
|
+
|
|
102
|
+
```python
|
|
103
|
+
from swarmauri_billing_paypal import PayPalBillingProvider
|
|
104
|
+
from swarmauri_base.billing import PaymentIntentRequest
|
|
105
|
+
|
|
106
|
+
provider = PayPalBillingProvider(
|
|
107
|
+
api_key="paypal",
|
|
108
|
+
client_id="paypal-client-id",
|
|
109
|
+
client_secret="paypal-client-secret",
|
|
110
|
+
)
|
|
111
|
+
|
|
112
|
+
payment = provider.create_payment_intent(
|
|
113
|
+
PaymentIntentRequest(amount_minor=1500, currency="USD", confirm=True)
|
|
114
|
+
)
|
|
115
|
+
captured = provider.capture_payment(payment.id, idempotency_key="paypal-capture-1")
|
|
116
|
+
|
|
117
|
+
print(payment.status, captured.status)
|
|
118
|
+
```
|
|
119
|
+
|
|
120
|
+
## Important Scope Notes
|
|
121
|
+
|
|
122
|
+
This package uses live PayPal REST API calls for products, plans, orders, captures, voids, refunds, subscriptions, invoices, payouts, customer disputes, webhook signature verification, and webhook parsing. Production use requires PayPal REST app credentials, correct sandbox or production environment selection, a configured PayPal webhook ID for signature verification, and account permissions for each enabled PayPal product.
|
|
123
|
+
|
|
124
|
+
## Entry Point
|
|
125
|
+
|
|
126
|
+
The package exposes a Swarmauri billing provider entry point:
|
|
127
|
+
|
|
128
|
+
```toml
|
|
129
|
+
[project.entry-points.'swarmauri.billing_providers']
|
|
130
|
+
PayPalBillingProvider = "swarmauri_billing_paypal.provider:PayPalBillingProvider"
|
|
131
|
+
```
|
|
132
|
+
|
|
133
|
+
## Related Packages
|
|
134
|
+
|
|
135
|
+
Billing provider packages:
|
|
136
|
+
|
|
137
|
+
- [swarmauri_billing_adyen](https://pypi.org/project/swarmauri_billing_adyen/)
|
|
138
|
+
- [swarmauri_billing_authorize_net](https://pypi.org/project/swarmauri_billing_authorize_net/)
|
|
139
|
+
- [swarmauri_billing_braintree](https://pypi.org/project/swarmauri_billing_braintree/)
|
|
140
|
+
- [swarmauri_billing_mock](https://pypi.org/project/swarmauri_billing_mock/)
|
|
141
|
+
- [swarmauri_billing_paystack](https://pypi.org/project/swarmauri_billing_paystack/)
|
|
142
|
+
- [swarmauri_billing_razorpay](https://pypi.org/project/swarmauri_billing_razorpay/)
|
|
143
|
+
- [swarmauri_billing_square](https://pypi.org/project/swarmauri_billing_square/)
|
|
144
|
+
- [swarmauri_billing_stripe](https://pypi.org/project/swarmauri_billing_stripe/)
|
|
145
|
+
|
|
146
|
+
Foundational packages:
|
|
147
|
+
|
|
148
|
+
- [swarmauri_core](https://pypi.org/project/swarmauri_core/) defines billing capabilities and interfaces.
|
|
149
|
+
- [swarmauri_base](https://pypi.org/project/swarmauri_base/) provides billing specs, refs, mixins, and `BillingProviderBase`.
|
|
150
|
+
- [swarmauri](https://pypi.org/project/swarmauri/) provides namespace imports and plugin discovery.
|
|
151
|
+
|
|
152
|
+
## License
|
|
153
|
+
|
|
154
|
+
Apache-2.0
|
|
155
|
+
|
|
156
|
+
## Contributing
|
|
157
|
+
|
|
158
|
+
If you connect this provider to live PayPal APIs, preserve deterministic tests, document required credentials and webhook behavior, and add coverage for each supported billing capability.
|
|
159
|
+
|
|
160
|
+
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "swarmauri_billing_paypal"
|
|
3
|
-
version = "0.
|
|
4
|
-
description = "PayPal billing provider for
|
|
3
|
+
version = "0.11.0.dev1"
|
|
4
|
+
description = "PayPal REST backed Swarmauri billing provider for products, plans, orders, captures, refunds, subscriptions, invoices, payouts, disputes, and webhooks."
|
|
5
5
|
license = "Apache-2.0"
|
|
6
6
|
readme = "README.md"
|
|
7
7
|
repository = "http://github.com/swarmauri/swarmauri-sdk"
|
|
@@ -12,8 +12,12 @@ classifiers = [
|
|
|
12
12
|
"Intended Audience :: Information Technology",
|
|
13
13
|
"License :: OSI Approved :: Apache Software License",
|
|
14
14
|
"Operating System :: OS Independent",
|
|
15
|
+
"Topic :: Internet :: WWW/HTTP",
|
|
16
|
+
"Topic :: Office/Business :: Financial",
|
|
15
17
|
"Topic :: Office/Business :: Financial :: Point-Of-Sale",
|
|
18
|
+
"Topic :: Software Development :: Libraries",
|
|
16
19
|
"Topic :: Software Development :: Libraries :: Application Frameworks",
|
|
20
|
+
"Topic :: Software Development :: Testing",
|
|
17
21
|
"Programming Language :: Python",
|
|
18
22
|
"Programming Language :: Python :: 3",
|
|
19
23
|
"Programming Language :: Python :: 3 :: Only",
|
|
@@ -27,15 +31,29 @@ authors = [{ name = "Jacob Stewart", email = "jacob@swarmauri.com" }]
|
|
|
27
31
|
dependencies = [
|
|
28
32
|
"swarmauri_core",
|
|
29
33
|
"swarmauri_base",
|
|
34
|
+
"httpx>=0.27",
|
|
30
35
|
]
|
|
31
36
|
keywords = [
|
|
32
37
|
"swarmauri",
|
|
33
38
|
"sdk",
|
|
34
39
|
"billing",
|
|
35
40
|
"paypal",
|
|
36
|
-
"
|
|
41
|
+
"paypal billing provider",
|
|
42
|
+
"paypal payments",
|
|
43
|
+
"community",
|
|
37
44
|
"payments",
|
|
45
|
+
"payment gateway",
|
|
46
|
+
"checkout",
|
|
47
|
+
"hosted checkout",
|
|
48
|
+
"paypal rest api",
|
|
49
|
+
"orders",
|
|
50
|
+
"captures",
|
|
38
51
|
"invoicing",
|
|
52
|
+
"payouts",
|
|
53
|
+
"refunds",
|
|
54
|
+
"customer disputes",
|
|
55
|
+
"webhook signature verification",
|
|
56
|
+
"webhooks",
|
|
39
57
|
"subscription management",
|
|
40
58
|
"merchant services",
|
|
41
59
|
"e-commerce integration",
|
|
@@ -79,7 +97,7 @@ dev = [
|
|
|
79
97
|
"pytest-xdist>=3.6.1",
|
|
80
98
|
"pytest-json-report>=1.5.0",
|
|
81
99
|
"python-dotenv",
|
|
82
|
-
"
|
|
100
|
+
"httpx>=0.27",
|
|
83
101
|
"flake8>=7.0",
|
|
84
102
|
"pytest-timeout>=2.3.1",
|
|
85
103
|
"ruff>=0.9.9",
|