Go to file
PCoder 9b8a9c563a Handle None when all stripe plans are empty 2019-09-14 23:13:30 +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 Handle None when all stripe plans are empty 2019-09-14 23:13:30 +05:30
ucloud_pay.py Deactivate port if not set 2019-09-14 22:58:11 +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