storj/satellite/payments/stripecoinpayments
Cameron c2cd213c4f satellite/console: purchase package grants credit
Instead of granting a coupon when purchasing a package, grant credit.
This changes paymentsconfig.PackagePlan to use credit amount rather than
coupon ID. Add additional check to see if a paid invoice with the
description exists. If so, don't create and pay another invoice.

Change-Id: I81df24984c519c773db5fc8e9070bd7797070ec2
2023-03-31 22:29:54 +00:00
..
accounts_test.go satellite/satellitedb: add package info to customers db 2023-03-31 15:51:30 +00:00
accounts.go satellite/payments: add Balances interface 2023-03-31 21:51:37 +00:00
balances_test.go satellite/payments: add Balances interface 2023-03-31 21:51:37 +00:00
balances.go satellite/payments: add Balances interface 2023-03-31 21:51:37 +00:00
client_test.go satellite/payments/stripecoinpayments: retry API calls with exp backoff 2023-03-22 07:20:27 -05:00
client.go satellite/payments/stripecoinpayments: parallelize invoice methods 2023-03-31 17:14:22 +00:00
conversion.go satellite: remove unused coinpayments code and chores 2022-11-30 16:24:48 +00:00
coupons_test.go satellite/console: purchase package grants credit 2023-03-31 22:29:54 +00:00
coupons.go satellite/console: purchase package grants credit 2023-03-31 22:29:54 +00:00
creditcards_test.go satellite/console: return card from AddCreditCard 2023-02-21 20:48:15 +00:00
creditcards.go satellite/payments/stripecoinpayments: add ctx to Stripe method calls 2023-03-14 17:52:17 +00:00
customers_test.go satellite/payments/stripecoinpayments: fix mock data-race 2022-08-01 14:30:39 +00:00
customers.go satellite/satellitedb: add package info to customers db 2023-03-31 15:51:30 +00:00
db.go satellite/{payments,satellitedb}: Remove custom coupon implementation 2021-10-11 19:47:00 +00:00
invoices_test.go satellite/console: add Purchase method to console.Payments 2023-02-21 20:10:42 +00:00
invoices.go Revert "satellite/payments: add partnered field to coupon struct" 2023-03-31 16:03:48 +00: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: parallelize invoice methods 2023-03-31 17:14:22 +00:00
service.go satellite/payments/stripecoinpayments: parallelize invoice methods 2023-03-31 17:14:22 +00:00
stripemock.go satellite/payments: add Balances interface 2023-03-31 21:51:37 +00:00
tokens_test.go satellite/payments/stripecoinpayments: add ctx to Stripe method calls 2023-03-14 17:52:17 +00:00
tokens.go satellite/payments/stripecoinpayments: add ctx to Stripe method calls 2023-03-14 17:52:17 +00:00
transactions_test.go satellite: remove unused coinpayments code and chores 2022-11-30 16:24:48 +00:00
transactions.go satellite: remove unused coinpayments code and chores 2022-11-30 16:24:48 +00:00