uncloud-mravi/README.md
2020-02-20 16:05:58 +01:00

1.3 KiB

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 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