From 29e40b53d7a383fe78dcfd1028366285d5754aa5 Mon Sep 17 00:00:00 2001 From: Yasuhiro Date: Tue, 6 Feb 2024 14:13:36 +0300 Subject: [PATCH 1/2] Corrupted badge was removed --- README.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index c9f0adc..e04c3e1 100644 --- a/README.md +++ b/README.md @@ -2,9 +2,11 @@
- - AAIO Badge - +[//]: # () + +[//]: # ( AAIO Badge) + +[//]: # () [![kewldan - AAIO](https://img.shields.io/static/v1?label=kewldan&message=AAIO&color=blue&logo=github)](https://github.com/kewldan/AAIO "Go to GitHub repo") [![GitHub release](https://img.shields.io/github/release/kewldan/AAIO?include_prereleases=&sort=semver&color=blue)](https://github.com/kewldan/AAIO/releases/) From 20490cbe961b6795790edb78efb403f154500d66 Mon Sep 17 00:00:00 2001 From: Yasuhiro Date: Tue, 6 Feb 2024 14:15:33 +0300 Subject: [PATCH 2/2] _base_url was added to "create_payment" HotFix --- src/aaio/AAIO.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/aaio/AAIO.py b/src/aaio/AAIO.py index 3d5bff4..3a11f1a 100644 --- a/src/aaio/AAIO.py +++ b/src/aaio/AAIO.py @@ -110,7 +110,7 @@ def create_payment(self, amount: float, order_id: str, description: str = None, 'us_key': us_key } - return f'https://aaio.io/merchant/pay?' + urlencode({k: v for k, v in params.items() if v is not None}) + return f'{self._base_url}/merchant/pay?' + urlencode({k: v for k, v in params.items() if v is not None}) async def get_ips(self) -> List[str]: response = await self.__create_request('/api/public/ips')