Go to file
jordi fita mas 7e39e5f549 Create new drafts if trying to modify an already pending payment
This can happen when the customer reaches the payment page, but then
returns back to the booking form via the back button: the browser
remembers the URI with the cart slug, trying to make it ready, and then
it fails because it is already pending.

I did not like the idea of modifying a payment that is already not
a draft, because it seems to me that can lead to errors if we receive
Redsys notifications of payments that are being changed back to draft.
In fact, i believe that draft payments maybe should go to a different
relation altogether, so that i can prevent UPDATE on payment by guests,
but maybe i am going overboard now.
2024-02-13 20:16:12 +01:00
cmd/camper Manage all media uploads in a single place 2023-09-21 01:56:44 +02:00
debian Tag database with v2 2024-01-29 02:52:52 +01:00
demo Allow campsite type option to be just per unit, not per unit per night 2024-02-11 21:45:00 +01:00
deploy Create new drafts if trying to modify an already pending payment 2024-02-13 20:16:12 +01:00
pkg Change draft_payment return type to row of payment 2024-02-13 19:51:39 +01:00
po Send an email on notification of success payment 2024-02-13 05:20:35 +01:00
revert Handle payment notifications from Redsys 2024-02-13 02:38:38 +01:00
test Create new drafts if trying to modify an already pending payment 2024-02-13 20:16:12 +01:00
verify Handle payment notifications from Redsys 2024-02-13 02:38:38 +01:00
web Move down HTMx attributes for booking form 2024-02-13 05:59:07 +01:00
.gitignore Add the sample campsite types to the demo file 2023-09-10 03:57:46 +02:00
Makefile Send an email on notification of success payment 2024-02-13 05:20:35 +01:00
go.mod Copy RecordArray from pgtype to database 2023-09-12 21:58:30 +02:00
go.sum Copy RecordArray from pgtype to database 2023-09-12 21:58:30 +02:00
guix.scm Add Guix package definition 2024-01-28 18:12:38 +01:00
sqitch.conf Add empty Sqitch configuration anq plan files 2023-07-20 23:43:23 +02:00
sqitch.plan Handle payment notifications from Redsys 2024-02-13 02:38:38 +01:00