feat(subscriptions): create_subscription_session prend le handle en paramètre

This commit is contained in:
Colin Maudry
2026-07-01 14:34:09 +02:00
parent 64158e9080
commit 179e6e436d
2 changed files with 6 additions and 1 deletions
+4
View File
@@ -38,6 +38,7 @@ def test_create_subscription_session_with_customer_handle(fake_httpx):
)
url = client.create_subscription_session(
"plan_simple",
"abo-1-1",
"https://app/ok",
"https://app/ko",
customer_handle="colibre-1",
@@ -45,8 +46,10 @@ def test_create_subscription_session_with_customer_handle(fake_httpx):
assert url == "https://checkout.reepay.com/#/sub-1"
body = fake_httpx["calls"][0]["json"]
assert body["plan"] == "plan_simple"
assert body["handle"] == "abo-1-1"
assert body["customer"] == "colibre-1"
assert body["signup_method"] == "link"
assert "generate_handle" not in body
assert "prepare_subscription" not in body
@@ -63,6 +66,7 @@ def test_create_subscription_session_no_trial(fake_httpx):
)
client.create_subscription_session(
"plan_simple",
"abo-1-2",
"https://app/ok",
"https://app/ko",
no_trial=True,