All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog.
- When charging a commerce via Stripe API, commerceId is now being passed as a parameter
- When sharing a commerce, a timer is also set on Back to prevent looping on endpoint and getting an infinite number of sharing
- Bugfixes for endpoint POST (/publish-commerce).
- Added required user id for endpoint POST (/publish-commerce).
- Fix async keyword missing in /publish-commerce endpoint
- Added a new endpoint POST (/publish-commerce), to publish a commerce to weeclik network via backend, much secure than writing business logic in react app
- Update cloud function after save for commerce, now create an empty array for stripeCheckoutSession, storing stripe checkout sessions IDs to prevent fraud.
- Added a new endpoint POST (/create-checkout-session), for payment checkout / CSA 3D secure integration
- Added a new endpoint POST (/retrieve-checkout-session-status), to confirm the successfull payment of a checkout sssion
- Move someroute to different files, all routes / cron are no longer in one unique file
- Endpoint POST (/charge) since no longer used by web app project
- Prepare MongoDB Atlas migration with removal of MONGODB_URI config var, the server app now uses DATABASE_URI config var name (not linked to Heroku's MongoDB Add-on).
- New sharing Endpoint POST (/share). Needs a commerceId(required) and a userId(optional) to increment sharing number.
- After save of commerce now check if end of subscription is null, set its date tu current, so the cron task, checking for expired commerces), can invalidate it directly.
- After save of commerce now check if it's null not only if latitude & longitude are egal to 0.
- Better handling of Stripe payment methods (billing + others) - POST: /charge (async).
- Clean up of dependencies
- Updated npm librairies such as Parse, Dashboard, etc.
- After save of commerce no longer check description for hashtags.
- Endpoint GET (/valid-email/:email), for checking if user email is valid, never used.
- Endpoint GET (/redirect-to-store), for getting a link to download the app, Weeclik website is now being used for this purpose.
- Endpoint POST (/webhook), which was used during Stripe integration tests.
- Add Stripe charge method (unique payment). - POST: /charge (async).
- Cloud code function (endedSubscription) to track ended payments of commerces hourly.
- Added endpoint for universal links (iOS). - GET /apple-app-site-association.
- Added Parse Cloud AfterDelete function to remove all commerce's photos & videos if deleted.
- Prevent .DS_Store files to be tracked by Git.
- Major update of parse-server dependency from v2 to v3.
- Parse server cron (automatic schedule) now execute new cloud code function to retrieve commerce's ended subscriptions.
- Better Parse Cloud AfterSave function.
- Added other banned word to commerce's tags ("description", "sappuie", "sur", "pour", "les", "proposer", "très").
- Cloud code function (retrieveAllObjects) since parse-server framework changed from v2 to v3 (function no longer can be executed).
- Change handling of /charge endpoint.
- Add CORS domain origin option on POST (/charge).
- Created CHANGELOG.md file to keep track of changes.
- Increase max file upload size to 1Go.
- Removed Javascript key from Parse Server configuration (No longer needed).