Go to file
Nico Schottelius aa9548e753 +gitignore
Signed-off-by: Nico Schottelius <nico@nico-notebook.schottelius.org>
2020-02-15 11:15:26 +01:00
products Many more changes 2020-01-27 13:40:57 +05:00
.gitignore +gitignore 2020-02-15 11:15:26 +01:00
README-penguinpay.md +gitignore 2020-02-15 11:15:26 +01:00
README.md initial commit 2020-01-20 12:30:12 +05:00
config.py Many more changes 2020-01-27 13:40:57 +05:00
etcd_wrapper.py make value_in_json=True 2020-01-27 14:55:26 +05:00
hack.py so many notes&hacks! 2020-02-15 09:38:33 +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
notes.org so many notes&hacks! 2020-02-15 09:38:33 +01:00
requirements.txt so many notes&hacks! 2020-02-15 09:38:33 +01:00
schemas.py make value_in_json=True 2020-01-27 14:55:26 +05:00
stripe_utils.py make value_in_json=True 2020-01-27 14:55:26 +05:00
ucloud_pay.py make value_in_json=True 2020-01-27 14:55:26 +05:00

README.md

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