Skip to content

1.7.1

Choose a tag to compare

@Xifong Xifong released this 15 Apr 14:13
· 7 commits to main since this release
1e318bb

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