forked from uncloud/uncloud
No description
c456355059
Signed-off-by: Nico Schottelius <nico@nico-notebook.schottelius.org> |
||
---|---|---|
nicohack202002/uncloud | ||
products | ||
.gitignore | ||
config.py | ||
etcd_wrapper.py | ||
hack-a-vpn.py | ||
helper.py | ||
ldap_manager.py | ||
ldaptest.py | ||
notes-nico.org | ||
notes.org | ||
README-penguinpay.md | ||
README.md | ||
requirements.txt | ||
schemas.py | ||
stripe_hack.py | ||
stripe_utils.py | ||
ucloud_pay.py |
uncloud-pay
The pay module for the uncloud
Getting started as a user
TODO
Usage
Currently handles very basic features, such as:
1. Adding of products
http --json http://[::]:5000/product/add email=your_email_here password=your_password_here specs:=@ipv6-only-vm.json
2. Listing of products
http --json http://[::]:5000/product/list
3. Ordering products
http --json http://[::]:5000/product/order email=your_email_here password=your_password_here product_id=5332cb89453d495381e2b2167f32c842 cpu=1 ram=1gb os-disk-space=10gb os=alpine
4. Listing users orders
http --json GET http://[::]:5000/order/list email=your_email_here password=your_password_here
5. Registering user's payment method (credit card for now using Stripe)
http --json http://[::]:5000/user/register_payment card_number=4111111111111111 cvc=123 expiry_year=2020 expiry_month=8 card_holder_name="The test user" email=your_email_here password=your_password_here