Go to file
PCoder 77dd6cb14e Indent 2019-09-14 13:33:53 +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 Obtain STRIPE_API_PRIVATE_KEY from config 2019-09-13 23:37:53 +05:30
stripe_utils.py Add card exists method 2019-09-14 12:28:03 +05:30
ucloud-pay.py Indent 2019-09-14 13:33:53 +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