From 04edcb8fd66b78d555c4b5e675904b2918c6d145 Mon Sep 17 00:00:00 2001 From: Guillaume Dott Date: Fri, 27 Aug 2021 15:26:55 +0200 Subject: [PATCH] Start writing README --- README.md | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 7e5ad35..e5e381b 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,6 @@ # MoneticoPaiement -Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/monetico_paiement`. To experiment with that code, run `bin/console` for an interactive prompt. - -TODO: Delete this and the text above, and describe your gem +MoneticoPaiement is a gem to ease credit card payment with [Monetico Paiement](https://www.monetico-paiement.fr/). ## Installation @@ -22,7 +20,17 @@ Or install it yourself as: ## Usage -TODO: Write usage instructions here +The EPT can be configured in an initialiser (`config/initializers/monetico_paiement.rb`): + +```ruby +MoneticoPaiement.configure do |config| + config.hmac_key = "################################" + config.ept_number = "######" + config.company_code = "########" + + config.env = :test # or :production +end +``` ## Development