From 12953b68f36fc6a55c63ae77da49a98688c90269 Mon Sep 17 00:00:00 2001 From: Rostyslav Bohomaz Date: Mon, 26 Feb 2024 19:06:03 +0200 Subject: [PATCH] chore: update readme --- readme.ipynb | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/readme.ipynb b/readme.ipynb index 0b1ae70..861d379 100644 --- a/readme.ipynb +++ b/readme.ipynb @@ -56,8 +56,7 @@ "from liqpy.client import Client\n", "from liqpy.api.exceptions import LiqPayException\n", "from liqpy.dev.testing import TestCard, gen_card_cvv, gen_card_expire\n", - "from liqpy.dev.server import LiqpayServer\n", - "from liqpy.constants import LIQPAY_TZ" + "from liqpy.dev.server import LiqpayServer" ] }, { @@ -114,7 +113,7 @@ "metadata": {}, "outputs": [], "source": [ - "csv_data, signature = client.encode(\n", + "data, signature = client.encode(\n", " action=\"pay\",\n", " amount=1,\n", " order_id=order_id,\n", @@ -123,10 +122,10 @@ ")\n", "\n", "sep, end = \"\\n\", \"\\n\\n\"\n", - "print(\"data:\", csv_data, sep=sep, end=end)\n", + "print(\"data:\", data, sep=sep, end=end)\n", "print(\"signature:\", signature, sep=sep, end=end)\n", "\n", - "client.callback(csv_data, signature)" + "client.callback(data, signature)" ] }, { @@ -296,7 +295,7 @@ "metadata": {}, "outputs": [], "source": [ - "action = \"pay\"\n", + "action = \"subscribe\"\n", "order_id = uuid4()\n", "\n", "expire = timedelta(seconds=60)\n", @@ -326,7 +325,7 @@ " description=f\"test {action} checkout\",\n", " currency=\"USD\",\n", " expired_date=expire,\n", - " subscribe_date_start=timedelta(days=7),\n", + " # subscribe_date_start=timedelta(days=7),\n", " subscribe_periodicity=\"month\",\n", " # result_url=\"https://example.com/result\",\n", " server_url=server_url,\n", @@ -440,7 +439,7 @@ "metadata": {}, "outputs": [], "source": [ - "date_to = datetime.now(LIQPAY_TZ)\n", + "date_to = datetime.now()\n", "date_from = date_to - timedelta(hours=1)\n", "print(\"from:\", date_from)\n", "print(\"to:\", date_to)"