1.7.1
What's Changed
paid-python 1.7.1
New features
Checkouts resource — create and manage checkout links programmatically.
# Create a checkout link
checkout = client.checkouts.create(
products=[{"id": "prod_abc123"}],
success_url="https://example.com/success",
external_customer_id="user_42",
)
print(checkout.url) # redirect your customer here
# Retrieve, list, archive
checkout = client.checkouts.get("chk_abc123")
all_checkouts = client.checkouts.list()
client.checkouts.archive("chk_abc123")All methods are available on the async client too (AsyncPaid).
Enhancements
Orders — three new optional flags on create_order and update_order_by_id:
| Field | Description |
|---|---|
auto_post_invoices |
Automatically post invoices when the order activates |
auto_send_billing_emails |
Send billing notification emails automatically |
auto_send_payment_emails |
Send payment notification emails automatically |
Breaking changes
None. All new Order fields are optional except version (int), which is a new required field on the Order type returned by the API — existing code reading Order objects will need to handle this field if strict attribute access is used.
Full Changelog: 1.7.0...1.7.1