Skip to content

Commit

Permalink
Merge pull request #4 from Azazel-h/feature/url-fix
Browse files Browse the repository at this point in the history
Feature/url-fix -- create_payment with self._base_url
  • Loading branch information
kewldan authored Feb 6, 2024
2 parents 3edcc76 + 20490cb commit c5365f5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,11 @@

<div align="center">

<a href="https://aaio.io/" target="_blank">
<img alt="AAIO Badge" src="https://aaio.io/assets/svg/banners/big/dark-2.svg" title="Aaio - Сервис по приему онлайн платежей">
</a>
[//]: # (<a href="https://aaio.io/" target="_blank">)

[//]: # ( <img alt="AAIO Badge" src="https://aaio.io/assets/svg/banners/big/dark-2.svg" title="Aaio - Сервис по приему онлайн платежей">)

[//]: # (</a>)

[![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/)
Expand Down
2 changes: 1 addition & 1 deletion src/aaio/AAIO.py
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down

0 comments on commit c5365f5

Please sign in to comment.