From 137b3f82cd205dcc50e200f57ac333d8a02a2a65 Mon Sep 17 00:00:00 2001 From: klafyvel Date: Wed, 11 Jul 2018 18:30:41 +0200 Subject: [PATCH] Update Payment --- Payment.md | 29 ++++++++++++++++++++++++----- 1 file changed, 24 insertions(+), 5 deletions(-) diff --git a/Payment.md b/Payment.md index 8401d78..6d395cf 100644 --- a/Payment.md +++ b/Payment.md @@ -1,9 +1,28 @@ Re2o allows you to handle payments to give access to the internet to your users. This page describes how to create these payments types. # Basic : create a payment type -In the navigation bar, go to `Members>manage cotisations`. Then in the left menu, click on Payment methods. To create a payment type, click on `Add a payment type`. You can choose a name for this payment type, decide whether everyone can use this payment type to buy the articles which are available to everyone or if the `cotisations.use_every_payment` is required to use this payment. Then there is the "Payment method" field, which allow you to choose a payment method. +In the navigation bar, go to `Members>manage cotisations`. Then in the left menu, click on Payment methods. To create a payment type, click on `Add a payment type`. You can choose a name for this payment type, decide whether everyone can use this payment type to buy the articles which are available to everyone or if the `cotisations.use_every_payment` right is required to use this payment. Then there is the "Payment method" field, which allow you to choose a payment method. -# No payment method -# ComNpay -# Cheque -# Balance +# Payment method +Here are listed the different payment methods implemented into Re2o. If you want another one to be implemented, please open an issue [here](https://gitlab.federez.net/federez/re2o/issues), our team of highly trained monkey will start working on it ASAP. + +## No payment method + +That's the default behaviour, at the end of the payment, the invoice is simply validated, and a message is displayed. + +## ComNpay + +In order to accept payments using bank card, we implemented this payment method, which interact with [ComNpay](https://www.comnpay.com/) in order to validate the invoice. To use it you need to create an account. Then just create a payment type whose payment method is `COMNPAY`. You will have to register your VAD number and your secret key. The secret key is encrypted in the database using the AES algorithm. For that you need an `AES_KEY` in your settings (if you use our install script, one have been generated during the installation). + +Note : the user has to be able to reach the ComNpay servers in order to pay the invoice, so take that into account if you plan to allow them to pay their subscription even when they have no access to the internet yet. + +## Cheque + +If you want to allow cheque payment. The invoice is validated after a bank and a cheque number have been asked to the user. + +## Balance + +Allow users to pay with the money they already gave to you. People which can use this payment method will be able to credit their balance (an invoice is created when an user credit their balance). You can set maximum and minimum allowed balance (even negative minimum balance !) + +# Who can use which payment to buy which article ? +todo \ No newline at end of file