Skip to main content

boilpayment-polar

Polar implementation of boilpayment-core's PaymentProvider protocol: checkout, native subscriptions, refunds, Standard Webhooks verification, and normalizers from Polar's REST API responses to the kit's Payment/Subscription/Refund types.

Install

pip install boilpayment-polar

Usage

from boilpayment_polar import PolarProvider
from boilpayment_core import CreateCheckoutInput

provider = PolarProvider(
    access_token=os.environ["POLAR_ACCESS_TOKEN"],
    webhook_secret=os.environ["POLAR_WEBHOOK_SECRET"],
    server="sandbox",
)

checkout = await provider.create_checkout(CreateCheckoutInput(
    customer_ref="cust_123", plan=plan, price=price, mode="subscription",
    success_url="https://app.example.com/success", cancel_url="https://app.example.com/cancel",
    idempotency_key="checkout-1",
))

PolarProvider is passed as the provider dependency to boilpayment-lifecycle, boilpayment-refund, boilpayment-usage, and boilpayment-webhook.

Metadata

Release files for boilpayment-polar 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for boilpayment-polar 0.1.0
File Interpreter ABI Platform Actions
boilpayment_polar-0.1.0-py3-none-any.whl Python 3 none any Details for boilpayment_polar-0.1.0-py3-none-any.whl

Release files / boilpayment_polar-0.1.0-py3-none-any.whl

Download URL boilpayment_polar-0.1.0-py3-none-any.whl
Size 8.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7b182b64316c0a75b231d4173f171675316aae69f1751681b4801cbffa5c9ab0
BLAKE2b-256 checksum
How to use checksums
a67c8b4a8be7b7c38bfc3af4045a1151845a742e3ce49f9f2c55271bb9ea4057
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.12

Security for boilpayment-polar 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page