Skip to content

Commit

Permalink
chore: update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
rostyq committed Feb 26, 2024
1 parent c0c68dd commit 12953b6
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions readme.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -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"
]
},
{
Expand Down Expand Up @@ -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",
Expand All @@ -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)"
]
},
{
Expand Down Expand Up @@ -296,7 +295,7 @@
"metadata": {},
"outputs": [],
"source": [
"action = \"pay\"\n",
"action = \"subscribe\"\n",
"order_id = uuid4()\n",
"\n",
"expire = timedelta(seconds=60)\n",
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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)"
Expand Down

0 comments on commit 12953b6

Please sign in to comment.