A online payment portal for ETIC INSA.
ETIC-Shop is an easily configurable payment portal that is meant to work with Stripe Checkout. Link.
- Login to the stripe account. Stripe Dashboard.
- Select 'Produits' on the main menu, then 'Ajouter un produit'.
- When creating a product select the 'Produit récurrent ou ponctuel' type.

- Optionally, add a photo of the product here, this will be displayed on the Checkout page.
- Fill in the other attributes, making sure to select 'Ponctuel' for the 'Tarif' section for a one-off payment.

- Save the product by clicking on 'Enregistrer le produit'.
- Open the product page.
- Copy the API key for the product's rate ('tarif') -> the code that starts with 'price_1HXXXXXXXXXXXXXXXX'.

To add a new product to the portal, you need to edit the config.js file.
- Edit the
config.jsfile on the master branch. The simplest way to do this is to edit the file directly on Github. Note that you might need writing rights on the repository to do this. Edit config.js
- Add the new product to the
PRODUCTStable, making sure to replace all attributes, specially the price key. Make sure to respect javascript syntax ;) Syntax errors will cause the site to break (just follow the existing as example and it should be fine).
- You can optionally add an image of the product to the site by uploading the photo into the
imagesfolder and then inserting the path of the image into the new entry in thePRODUCTStable. Follow the example of existing products. Note that for optimal viewing the image should be of size 600px X 600px. - Save the changes by clicking on 'Commit changes'.
- Test that the site has been correctly updated. You might need to clear the browser cache of the page to view the new version, Ctrl + Shift + R in most browsers. Link.
Sadsitha Lokuge
