Go to file
PCoder 0a6db9ebc0 Handler /order/list 2019-09-14 22:46:43 +05:30
.gitignore Initial commit 2019-09-13 10:32:23 +05:30
Pipfile Add pyotp, requests and stripe 2019-09-13 23:37:25 +05:30
Pipfile.lock Add pyotp, requests and stripe 2019-09-13 23:37:25 +05:30
README.md Supply app port via config 2019-09-13 12:07:53 +05:30
config.py Improve logging 2019-09-14 21:56:08 +05:30
stripe_utils.py Fix bugs: gettings all plans and putting them back to db 2019-09-14 21:56:54 +05:30
ucloud_pay.py Handler /order/list 2019-09-14 22:46:43 +05:30

README.md

ucloud-pay

The pay module for the ucloud

Getting started

pipenv shell
pipenv install
ETCD_HOST=127.0.0.1 ETCD_PORT=2379 python ucloud-pay.py

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'
  1. Listing of products
curl http://ucloud-pay-server:5000/product/list