Installation du module Stripe

This commit is contained in:
2020-09-01 19:16:54 +02:00
parent 1d513623d6
commit 16597281d2
44 changed files with 2825 additions and 3 deletions

View File

@@ -0,0 +1,43 @@
# Stripe
Thelia payment module for [Stripe](http://stripe.com).
You need a subscription to Stripe payment solution to use this module.
## Installation
Either you install StripePayment manually or via composer, the presence of Stripe API files is checked when you try to activate the module.
If the API files are absent, you can't use Stripe.
Be aware that API files are set into the core/vendor folder.
### Manually
* Copy the module into ```<thelia_root>/local/modules/``` directory and be sure that the name of the module is StripePayment.
* Install the Stripe PHP library :
* add "stripe/stripe-php" to your composer.json file with command : `composer require stripe/stripe-php:"6.*"`
* or download the library from <https://github.com/stripe/stripe-php/releases> and install it in your `core/vendor` directory
* Activate it in your Thelia administration panel
### Composer
Add it in your main thelia composer.json file:
```
composer require thelia/stripe-payment-module ~2.0.0
```
### Configuration
Enter your Stripe keys (*secret* and *public*) available on your [Stripe dashboard](https://dashboard.stripe.com/).
Put your Stripe account in live mode.
Then activate the Stripe in the module configuration panel.
Activate the webhooks in stripe dashboard with the url specified in Thelia Back-office Stripe configuration,
and add events listed in Thelia Back-office Stripe configuration.
### Logs
Stripe error logs are stored in a specific file located in the log folder.