4 Commits
1.0.0 ... 1.0.1

Author SHA1 Message Date
Aleksey
ef40d83a9c Update python-publish.yml 2022-06-05 17:25:41 +03:00
Aleksey
4a611396a1 Create python-publish.yml 2022-06-05 17:23:55 +03:00
Aleksey
7cc708ee03 fix: typo 2022-06-04 11:43:56 +03:00
Aleksey
8cba25a754 fix: Разметка 2022-06-03 21:25:42 +03:00
2 changed files with 42 additions and 3 deletions

39
.github/workflows/python-publish.yml vendored Normal file
View File

@@ -0,0 +1,39 @@
# This workflow will upload a Python Package using Twine when a release is created
# For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
name: Upload to PYPI
on:
release:
types: [published]
permissions:
contents: read
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build
- name: Build package
run: python -m build
- name: Publish package
uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}

View File

@@ -6,11 +6,11 @@
*Windows*
```commandline
> pip install pyspapi
pip install pyspapi
```
*Linux*
```commandline
$ sudo apt pip3 install pyspapi
sudo apt pip3 install pyspapi
```
## Примеры
@@ -33,7 +33,7 @@ print(api.payment(amount=1,
- `amount` - Стоимость покупки в АРах
- `redirectUrl` - URL страницы, на которую попадет пользователь после оплаты
- `webhookUrl` - URL, куда наш сервер направит запрос, чтобы оповестить ваш сервер об успешной оплате
- `data` - Строка до 100 символов, сюда можно пометить любые полезные данных.
- `data` - Строка до 100 символов, сюда можно поместить любые полезные данных.
#### Получение данных об успешной оплате
После успешной оплаты на URL указанный в `webhookUrl` придет POST запрос.