feat: payments system configuration docs
ci/woodpecker/push/woodpecker Pipeline was successful Details

wip-payments
Aravinth Manivannan 2022-06-22 00:40:06 +05:30
parent d470033429
commit 19682874ba
Signed by: realaravinth
GPG Key ID: AD9F0F08E855ED88
1 changed files with 30 additions and 0 deletions

View File

@ -42,3 +42,33 @@ HOSTEA = {
},
}
```
## Payments
At present, we rely on [Stripe](https://stripe.com) for processing
payments. So we are limited to the countries at which Stripe operates.
To deploy payments, please configure the options in settins.py that
start with `PAYMENT_*`
**NOTE: Please don't change the `PAYMENT_MODEL`. Changing it will
break the app**
```python
## django-payments configuration
PAYMENT_MODEL = "billing.Payment" # please don't change this value
# the URL at which Dashbaord will be listening
PAYMENT_HOST = "http://localhost:8000"
PAYMENT_VARIANTS = {
"stripe": (
"payments.stripe.StripeProvider",
{
# stripe API secret key, available in Stripe dashboard
"secret_key": env.get_value("STRIPE_SECRET_KEY"),
# stripe API public key, available in Stripe dashboard
"public_key": env.get_value("STRIPE_PUBLIC_KEY"),
},
)
}
```