Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ You can install the respective extension by calling `localstack install <Install
| [httpbin](https://github.com/localstack/localstack-extensions/tree/main/httpbin) | localstack-extension-httpbin | 0.1.0 | Stable |
| [MailHog](https://github.com/localstack/localstack-extensions/tree/main/mailhog) | localstack-extension-mailhog | 0.1.0 | Stable |
| [Miniflare](https://github.com/localstack/localstack-extensions/tree/main/miniflare) | localstack-extension-miniflare | 0.1.0 | Experimental |
| [Stripe](https://github.com/localstack/localstack-extensions/tree/main/stripe) | localstack-extension-stripe | 0.1.0 | Stable |
| [Stripe](https://github.com/localstack/localstack-extensions/tree/main/stripe) | localstack-extension-stripe | 0.2.0 | Stable |
| [Terraform Init](https://github.com/localstack/localstack-extensions/tree/main/terraform-init) | localstack-extension-terraform-init | 0.2.0 | Experimental |


Expand Down
2 changes: 1 addition & 1 deletion stripe/localstack_stripe/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.1.0"
__version__ = "0.2.0"
11 changes: 10 additions & 1 deletion stripe/localstack_stripe/extension.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def update_gateway_routes(self, router: http.Router[http.RouteHandler]):
# a ProxyHandler forwards all incoming requests to the backend URL
endpoint = http.ProxyHandler(self.backend_url)

# add path routes for localhost:4566/stripe
# add path routes for localhost:4566/stripe (backwards compatibility)
router.add(
"/stripe",
endpoint=endpoint,
Expand All @@ -34,6 +34,15 @@ def update_gateway_routes(self, router: http.Router[http.RouteHandler]):
"/stripe/<path:path>",
endpoint=endpoint,
)
# modern mounts
router.add(
"/_extension/stripe",
endpoint=endpoint,
)
router.add(
"/_extension/stripe/<path:path>",
endpoint=endpoint,
)
# add alternative host routes for stripe.localhost.localstack.cloud:4566
router.add(
"/",
Expand Down
3 changes: 1 addition & 2 deletions stripe/setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,8 @@ setup_requires =
wheel
plux>=1.3
install_requires =
stevedore>=3.4
plux>=1.3
localstack-localstripe>=1.13.8
localstack-localstripe>=1.15.6
test_requires =
pytest>=6.2.4

Expand Down