ucloud-pay/README.md

28 lines
585 B
Markdown
Raw Normal View History

2019-09-13 05:02:23 +00:00
# ucloud-pay
The pay module for the ucloud
2019-09-13 06:37:53 +00:00
## Getting started
```
pipenv shell
pipenv install
ETCD_HOST=127.0.0.1 ETCD_PORT=2379 python ucloud-pay.py
```
2019-09-13 05:02:23 +00:00
Currently handles very basic features, such as:
1. Adding of products
```
curl http://ucloud-pay-server:5000/product/add -XPOST --data '-name mravi --realm test --seed testseed --product-name "IPV6 VPN" --product-description="YEARLY IPV6 subscription" --product-type=recurring --product-recurring-duration=31536000 --product-price=12000'
```
2. Listing of products
```
curl http://ucloud-pay-server:5000/product/list
```