No description
Find a file
Nico Schottelius 13292db39e +old notes
2020-02-20 11:57:03 +01:00
products Many more changes 2020-01-27 13:40:57 +05:00
.gitignore +gitignore 2020-02-15 11:15:26 +01:00
config.py ++ hack 2020-02-20 09:44:30 +01:00
etcd_wrapper.py make value_in_json=True 2020-01-27 14:55:26 +05:00
hack.py ++ hack 2020-02-20 09:44:30 +01:00
helper.py Many more changes 2020-01-27 13:40:57 +05:00
ldap_manager.py Many more changes 2020-01-27 13:40:57 +05:00
ldaptest.py +ldaptest 2020-02-20 11:56:47 +01:00
notes-nico.org +old notes 2020-02-20 11:57:03 +01:00
notes.org so many notes&hacks! 2020-02-15 09:38:33 +01:00
README-penguinpay.md ++ hack 2020-02-20 09:44:30 +01:00
README.md initial commit 2020-01-20 12:30:12 +05:00
requirements.txt ++ hack 2020-02-20 09:44:30 +01:00
schemas.py make value_in_json=True 2020-01-27 14:55:26 +05:00
stripe_hack.py ++ hack 2020-02-20 09:44:30 +01:00
stripe_utils.py ++ hack 2020-02-20 09:44:30 +01:00
ucloud_pay.py make value_in_json=True 2020-01-27 14:55:26 +05:00

uncloud-pay

The pay module for the uncloud

  • uses etcd3 for storage.
  • uses Stripe as the payment gateway.
  • uses ldap3 for ldap authentication.

Getting started

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