storj/satellite/payments/stripecoinpayments
Jeremy Wharton b34b5c4177 satellite/payments/stripecoinpayments: do not reference nil invoice
When a customer has no pending line items, an invoice will not be
generated for them and the Stripe client method responsible for
creating new invoices returns nil. This change adds a nil check to
account for this possibility to ensure that no panics are caused
by attempted processing of the invoice.

Change-Id: Id184d027d7447f0ef876db58601ab6cf63927fc5
2022-11-05 18:09:52 -05:00
..
accounts_test.go satellitedb: add token balance to API endpoint 2022-08-31 22:55:16 +00:00
accounts.go apigen: project delete endpoint 2022-06-07 12:23:24 +03:00
clearing.go satellite/satellitedb: stop using _gob columns 2022-03-30 04:13:13 +00:00
client.go satellite/payments/stripecoinpayments: auto advance $0 invoices 2022-10-03 21:54:39 -05:00
conversion.go satellite/payments: remove Deposit from Tokens interface 2022-10-17 13:32:06 +02:00
coupons.go satellite: invalid coupon code returns 400 status code 2022-10-31 13:43:09 -06:00
creditcards_test.go satellite/{payments,admin}: add deletion of user creditcards on account deletion 2020-08-27 10:18:19 +00:00
creditcards.go satellite/payments: Implement coupon codes 2021-07-26 17:15:55 +00:00
customers_test.go satellite/payments/stripecoinpayments: fix mock data-race 2022-08-01 14:30:39 +00:00
customers.go satellite/billing: make stripe invoice generation work with multiregion satellites 2021-05-06 11:51:03 -06:00
db.go satellite/{payments,satellitedb}: Remove custom coupon implementation 2021-10-11 19:47:00 +00:00
invoices.go satellite/payments: Fix discount when listing invoices. 2021-10-22 10:16:27 -04:00
projectrecords_test.go satellite: use segment count for billing 2021-10-27 19:21:50 +00:00
projectrecords.go satellite: use segment count for billing 2021-10-27 19:21:50 +00:00
service_test.go satellite/payments/stripecoinpayments/service.go: add date to pay invoices command 2022-10-03 21:28:37 -07:00
service.go satellite/payments/stripecoinpayments: do not reference nil invoice 2022-11-05 18:09:52 -05:00
stripemock.go satellite/payments/stripecoinpayments: auto advance $0 invoices 2022-10-03 21:54:39 -05:00
tokens_test.go satellite/{payments/storjscan,satellitedb}: Add wallet implementation 2022-06-03 11:45:47 +00:00
tokens.go satellite/payments: remove Deposit from Tokens interface 2022-10-17 13:32:06 +02:00
transactions_test.go satellite/payments/monetary: remove pkg and all its references 2022-09-07 12:58:00 +00:00
transactions.go satellite/payments/monetary: remove pkg and all its references 2022-09-07 12:58:00 +00:00