Sylvain
6cd74ac33e
remove references to PaymentSchedule.scheduled
2021-05-27 16:11:23 +02:00
Sylvain
5f5ec8dbb6
remove references to Invoice.invoiced
2021-05-27 15:58:55 +02:00
Sylvain
13f50c0e33
remove references to WalletService.transactable
2021-05-27 13:43:54 +02:00
Sylvain
16df7f9506
fix data migrations + update test fixtures
2021-05-27 11:31:07 +02:00
Sylvain
c79078c8e1
Merge branch 'dev' into payzen
2021-05-26 14:00:51 +02:00
Sylvain
413bb57c38
[bug] zero-decimal currencies w/ stripe
2021-05-26 13:38:16 +02:00
Sylvain
6b90e73195
migrate database to object[] to store multiple boughts items
2021-05-25 17:28:35 +02:00
Sylvain
b938232c19
Merge branch 'dev' into payzen
2021-05-25 14:06:30 +02:00
Sylvain
4fe3a204b8
fixes for upgrade to dart-sass
2021-05-25 11:31:22 +02:00
Sylvain
faa880f9f6
CAD lists of types and extensions are now ordered alphabetically
2021-05-24 17:33:32 +02:00
Sylvain
c3f7f04ec2
[bug] html syntax error result in unable to compile the assets
2021-05-24 17:14:01 +02:00
Sylvain
ecf80b0591
ability to set invoices as erroneous
2021-05-24 16:34:27 +02:00
Sylvain
c7a59c8cb7
WIP: refactoring to singularize the booking process
...
We need to achieve only one process for all booking, not one for subscription, one for reservations, etc.
Moreover we must store one object per invoice_item/payment_schedule_object and stop using Invoice.invoiced or PaymentSchedule.scheduled
2021-05-21 18:25:18 +02:00
Sylvain
b151802923
WIP: fix invoices without invoiced_id
...
TODO: fix datetime parsing
2021-05-21 18:21:24 +02:00
Sylvain
da3eb4f8bd
[bug] typo in allow/prevent booking overlapping slots
2021-05-21 17:18:22 +02:00
Sylvain
b255abaf55
[bug] reservation of slots restricted to subscribers leads to invoices without invoiced_id
...
This bug was introduced with v4.7.0 and appends when the restriction is manually overridden by an admin/moderator
2021-05-21 16:46:41 +02:00
Sylvain
66f81a975e
WIP: array of items
...
Migration from cart_items:{reservation:{}, subscription:{}, ...}
to cart_items:{items:[{reservation:{}, ...}], ...}
2021-05-19 18:12:52 +02:00
Sylvain
dd1d05cc3a
set payzen public key as invalid if the field is empty
2021-05-19 09:34:31 +02:00
Sylvain
c6bc9f1c15
handle gateway keys invalidation
2021-05-18 16:42:30 +02:00
Sylvain
28c868587b
prevent fteched settings to set react components as uncontrolled
2021-05-18 16:31:19 +02:00
Sylvain
9355256909
refresh payzen keys after initial setting
2021-05-18 15:56:22 +02:00
Sylvain
6b99b00d5e
handle no key in payzen keys form
2021-05-18 13:50:27 +02:00
Sylvain
4826db7cf0
[bug] typo in allow/prevent booking overlapping slots
2021-05-18 10:52:59 +02:00
Sylvain
5adf15df91
syntax improvements
2021-05-18 09:40:35 +02:00
Sylvain
04b3bfe3c5
update components to match new architecture after merge from dev
2021-05-17 17:09:11 +02:00
Sylvain
1f9a7ba6cc
fix debugging footprints
2021-05-17 17:04:52 +02:00
Sylvain
6bcd9f6fef
Merge branch 'dev' into payzen
2021-05-17 15:07:41 +02:00
Sylvain
bf2407467b
[bug] unable to sort invoices by date
...
This is a workaround. The real issue is that some invoices does not have the invoiced_id data for Reservation. This is likely due to the fact that invoices are created and saved before the reservation is saved (so they don't have an ID).
@see app/services/reservations/reserve.rb#34
2021-05-17 12:34:12 +02:00
Sylvain
0992999a32
[bug] some invoices does not have the name of the user
2021-05-14 17:07:38 +02:00
Sylvain
c8c2300dd2
[bug] unable to change the slots durations for a new availability
2021-05-14 15:03:30 +02:00
Sylvain
1c4f46f935
[bug] responsiveness of the about page title
2021-05-14 14:55:14 +02:00
Sylvain
bf9a91b479
[bug] about page on small devices
2021-05-14 14:29:36 +02:00
Sylvain
82260d8c62
[bug] invalid currency in notifications for locales with region
2021-05-14 11:57:52 +02:00
Sylvain
7ac119d4cf
[bug] invoices are not generated in test/development if the configured locale is composed
...
Eg. If locale is fr-CA, it was crashing. If locale was only fr, is was working.
Now, composed locales print the watermark using the base locale and
hour_minute format is fetched from the base locale
2021-05-12 17:23:42 +02:00
Sylvain
ff40c98dcb
[bug] missing german watermark
2021-05-12 16:55:25 +02:00
Sylvain
390f62fd41
[bug] the count of successfully updated events was not correct
2021-05-12 15:53:32 +02:00
Sylvain
436db80ccf
Increased the width of the input field for the prices of the events
...
This is especially useful for currencies like FCFA that have large numbers and large currency symbol
2021-05-12 15:16:10 +02:00
Sylvain
d8656d56ec
allow remove all themes for an event
2021-05-12 15:05:16 +02:00
Sylvain
2a63daffb5
display all themes for the events
2021-05-12 15:00:19 +02:00
Sylvain
2a7a7fd614
[bug] the event themes are not kept when editing the event again
2021-05-12 14:54:56 +02:00
Sylvain
e3187460ea
create payment schedules on payzen
...
Also: make generic the creation of products on remote gateway
Also: make generic the call to gateway specific actions
2021-04-30 16:07:19 +02:00
Sylvain
5f47624d4e
WIP: create payment schedule w/ payzen
2021-04-29 17:10:02 +02:00
Sylvain
aaf36dcc0a
reserve events w/ payzen
...
we cannot use the <cart> directive because the layout is too much different
2021-04-29 16:29:35 +02:00
Sylvain
ee1cdb417e
WIP: move events reservation to use the cart directive
2021-04-28 17:26:07 +02:00
Sylvain
23e38238c8
fix payment on site modal in case of payment schedule
2021-04-28 17:25:42 +02:00
Sylvain
30c1c91590
factorize payment form props
2021-04-28 16:41:15 +02:00
Sylvain
f9b47cf1f4
fix payment on site modal
2021-04-28 16:29:04 +02:00
Sylvain
dbdedadf8c
fix price computation in front-end
2021-04-28 16:22:22 +02:00
Sylvain
953224f1f7
remove top margin on first group
2021-04-28 16:17:56 +02:00
Sylvain
3b2f17d6d8
improved style of subscription page titles
2021-04-28 15:43:36 +02:00
Sylvain
3dc686840c
front adaptation to cartItems
...
fix payzen customer cart creation
TODO: refactor the payOnSite modals
2021-04-27 17:18:20 +02:00
Sylvain
e75259734c
fix test Subscriptions::CreateAsAdminTest
...
user_id must be read from [:cart_items][:customer_id]
2021-04-27 13:51:23 +02:00
Sylvain
1bf091081b
fix test Reservations::CreateAsAdminTest
...
create subscription from POST api/reservation if the parameter subscription.plan_id is provided
+ cart_items are not wrapped in a reservation object
2021-04-26 18:27:35 +02:00
Sylvain
d5f7bd7abd
fix test Reservations::CreateTest
...
create subscription w/ the reservation if applicable
+ refactor payments_controller to factorize the on_*_success codes
2021-04-26 17:42:03 +02:00
Sylvain
da372cf8ad
fix test Events::AsUserTest
...
the event price calculalation was using a variable not reinitialized
2021-04-26 16:38:00 +02:00
Sylvain
53e9a1c4f2
fix running test create_as_admin_test
...
- do not create an empty payment gateway object if not needed
2021-04-26 12:00:07 +02:00
Sylvain
a2d870f680
migrate wall-info to use cartitems
2021-04-26 11:46:14 +02:00
Sylvain
6b8f7da98c
migrate js clients to new architecture
2021-04-26 11:41:02 +02:00
Sylvain
b9e8c8867c
fix running test renew_as_admin_test
2021-04-26 11:40:26 +02:00
Sylvain
bc6ef8ef50
WIP: move backend code base to new architecture
...
- from stripe only to payment gateway abstract
- from reservation params style to unified cart_items
TODO: fix not passing tests,
subscriptions/renew_as_admin_test.rb fails because InvoiceItem(9).amount = nil
2021-04-23 17:54:59 +02:00
Sylvain
94cbcd3236
refactor to use the new price computation system based on ShoppingCart
2021-04-23 12:52:06 +02:00
Sylvain
e456ddc7c9
WIP: refactor the price computation system
2021-04-22 19:24:08 +02:00
Sylvain
26dfbef5e1
WIP: refactor models to use payment_gateway_objects
2021-04-21 17:38:06 +02:00
Sylvain
434ec9c205
refactored Invoices to get rid of stripe references
2021-04-20 17:22:53 +02:00
Sylvain
a897d37b2d
improved footprint debug process
2021-04-16 16:03:10 +02:00
Sylvain
4ffd357841
WIP: migrate stripe ids in DB
2021-04-16 12:25:48 +02:00
Sylvain
343b2f7d23
refactor code related to archiving
2021-04-16 10:34:02 +02:00
Sylvain
1bbb8c3965
move the architecture from stripe-only to gateway-generic
2021-04-15 17:01:52 +02:00
Sylvain
ddd1ac52d6
save reservation|subscription to db after payment
2021-04-14 17:56:10 +02:00
Sylvain
07ea6e8c69
renamed SUPERADMIN_EMAIL to ADMINSYS_EMAIL
...
The previous was too much subject to confusions
2021-04-14 15:04:41 +02:00
Sylvain
4d3ead310d
do not run StripeWorker tasks is the gateway is not enabled
2021-04-14 12:18:37 +02:00
Sylvain
4e512dda45
validate the payment server side
2021-04-13 17:16:05 +02:00
Sylvain
dbbf6b5f63
fix KryptonConfig
2021-04-13 11:33:15 +02:00
Sylvain
c0afe9419e
consolidated the payzen process with types
2021-04-13 11:30:30 +02:00
Sylvain
dca2651fb3
process payements with payzen
2021-04-12 17:37:09 +02:00
Sylvain
ef7dcd37d8
retreive the formToken from PZ API
2021-04-12 12:16:12 +02:00
Sylvain
b3720d7f47
direct the stripe endpoints to /api/stripe
2021-04-12 10:48:30 +02:00
Sylvain
fd5c3a87ce
rename /api/payment to /api/stripe
...
other payment gateways will have their own separate endpoints
2021-04-12 10:45:41 +02:00
Sylvain
f232e586ce
payment endpoint is specific to stripe
2021-04-12 10:44:20 +02:00
Sylvain
954a35f006
refactor api files
2021-04-12 10:42:54 +02:00
Sylvain
23032c405b
WIP: create the formToken server-side
2021-04-09 17:17:58 +02:00
Sylvain
fe5c4e6233
integrate the payzen form widget into the modal
...
Also: do not fetch the api from unmounted components
2021-04-09 12:09:54 +02:00
Sylvain
5e2c50a85f
PaymentModal : automatically determines the payment modal to used based on the configured payment gateway
2021-04-09 09:03:59 +02:00
Sylvain
4d0dc808e8
move stripe & payzen components folders into payment/
2021-04-09 08:47:34 +02:00
Sylvain
b5ab9fbc79
rename PaymentModal to AbstractPaymentModal
2021-04-09 08:40:46 +02:00
Sylvain
4f3a47ae04
move payment modal from /base to /payment
2021-04-09 08:39:03 +02:00
Sylvain
fb2abcc382
integrate payzen logo and other fixes
2021-04-08 17:11:48 +02:00
Sylvain
d70d0dcf7a
stripe modal -> generic payment modal
2021-04-08 15:21:24 +02:00
Sylvain
d091c44c11
fix: This object has been frozen and should not be mutated
2021-04-08 11:09:33 +02:00
Sylvain
6da577d4ae
reorganized react components
2021-04-08 10:46:09 +02:00
Sylvain
a55dd4dc71
display errors in fab-input
2021-04-08 10:00:19 +02:00
Sylvain
4a344ac9e3
reorganized react components
2021-04-08 09:35:09 +02:00
Sylvain
eea390bdd4
workaround for project rejection
2021-04-07 17:42:15 +02:00
Sylvain
4245747072
include payzen frontend libs if enabled
2021-04-07 17:17:17 +02:00
Sylvain
635e8d3356
use HtmlTranslate component
2021-04-07 16:25:14 +02:00
Sylvain
67d0ce24b4
set payzen currency
...
also: refactored the comments in the react components to fit high quality
2021-04-07 16:21:12 +02:00
Sylvain
df7893f65f
open modal to edit the keys of the payment gateway
2021-04-07 11:36:04 +02:00
Sylvain
94c4d318e1
fix top-margin
2021-04-06 18:05:08 +02:00
Sylvain
0cca08984f
use flex-start
2021-04-06 18:00:55 +02:00
Sylvain
36871a0b34
improved display
2021-04-06 18:00:13 +02:00