You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
PCoder 665c327fc5 Supply interval param for creating the subscription 3 years ago
.gitignore Initial commit 3 years ago
Pipfile Add parsedatetime to pipenv 3 years ago
Pipfile.lock Add parsedatetime to pipenv 3 years ago
README.md Supply app port via config 3 years ago
config.py Improve logging 3 years ago
stripe_utils.py Supply interval param for creating the subscription 3 years ago
ucloud_pay.py Supply interval param for creating the subscription 3 years ago

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