storj/satellite/payments/stripe
Wilfred Asomani 4a49bc4b65 satellite/payments: fix account freeze chore race condition
This change fixes an issue where a formerly warned/frozen user will be
warned again even though they have made payment for the invoice that got
them frozen in the first place. A payment status check is now made
right before a warn/freeze event to make sure the invoice hasn't been
paid already.

Issue: https://github.com/storj/storj/issues/5931

Change-Id: I3f6ac1e224f40107d58dc8f7bdbce58bbbea0196
2023-06-14 10:10:56 +00:00
..
accounts_test.go satellite/console: add endpoint to invite users to project 2023-06-13 15:22:25 +00:00
accounts.go satellite/payments/stripe: apply egress discount to project charges 2023-04-13 17:34:50 +00:00
balances_test.go satellite/payments: Remove expired package credits 2023-05-22 11:58:37 +00:00
balances.go satellite/payments: rename 'stripecoinpayments' package to 'stripe' 2023-04-06 16:51:43 +00:00
client_test.go satellite/payments: rename 'stripecoinpayments' package to 'stripe' 2023-04-06 16:51:43 +00:00
client.go satellite/payments: fix account freeze chore race condition 2023-06-14 10:10:56 +00:00
conversion.go satellite/payments: rename 'stripecoinpayments' package to 'stripe' 2023-04-06 16:51:43 +00:00
coupons_test.go satellite/payments: rename 'stripecoinpayments' package to 'stripe' 2023-04-06 16:51:43 +00:00
coupons.go satellite/payments: rename 'stripecoinpayments' package to 'stripe' 2023-04-06 16:51:43 +00:00
creditcards_test.go satellite/payments: rename 'stripecoinpayments' package to 'stripe' 2023-04-06 16:51:43 +00:00
creditcards.go satellite/payments: rename 'stripecoinpayments' package to 'stripe' 2023-04-06 16:51:43 +00:00
customers_test.go satellite/payments/stripe: avoid full table scan while listing 2023-04-13 12:36:31 +02:00
customers.go satellite/payments/stripe: avoid full table scan while listing 2023-04-13 12:36:31 +02:00
db.go satellite/payments: rename 'stripecoinpayments' package to 'stripe' 2023-04-06 16:51:43 +00:00
invoices_test.go satellite/payments: fix account freeze chore race condition 2023-06-14 10:10:56 +00:00
invoices.go satellite/payments: fix account freeze chore race condition 2023-06-14 10:10:56 +00:00
projectrecords_test.go satellite/payments/stripe: avoid full table scan while listing records 2023-05-09 14:16:55 +00:00
projectrecords.go satellite/payments/stripe: avoid full table scan while listing records 2023-05-09 14:16:55 +00:00
service_test.go satellite/payments: Remove expired package credits 2023-05-22 11:58:37 +00:00
service.go satellite/payments: Remove expired package credits 2023-05-22 11:58:37 +00:00
stripemock.go satellite/payments: fix account freeze chore race condition 2023-06-14 10:10:56 +00:00
tokens_test.go satellite/payments: rename 'stripecoinpayments' package to 'stripe' 2023-04-06 16:51:43 +00:00
tokens.go satellite/payments: rename 'stripecoinpayments' package to 'stripe' 2023-04-06 16:51:43 +00:00
transactions_test.go satellite/payments: rename 'stripecoinpayments' package to 'stripe' 2023-04-06 16:51:43 +00:00
transactions.go satellite/payments: rename 'stripecoinpayments' package to 'stripe' 2023-04-06 16:51:43 +00:00