satellite/payments/stripe/service.go: fix typo in credit note memo

Remove the extra prepended '0x' from the wallet address.
Remove prepended '0x' from the transaction ID.

Change-Id: Id215536915fba62cc348aa2c3356ecc7898d68a2
This commit is contained in:
dlamarmorgan 2023-04-11 12:15:04 -07:00 committed by Storj Robot
parent df9cc4d10f
commit d402ed4b71

View File

@ -393,9 +393,9 @@ func (service *Service) addCreditNoteToInvoice(ctx context.Context, invoiceID, c
Params: stripe.Params{Context: ctx}, Params: stripe.Params{Context: ctx},
Invoice: stripe.String(invoiceID), Invoice: stripe.String(invoiceID),
Lines: lineParams, Lines: lineParams,
Memo: stripe.String("Storjscan Token Payment - Wallet: 0x" + wallet), Memo: stripe.String("Storjscan Token Payment - Wallet: " + wallet),
} }
params.AddMetadata("txID", "0x"+strconv.FormatInt(txID, 10)) params.AddMetadata("txID", strconv.FormatInt(txID, 10))
params.AddMetadata("wallet address", wallet) params.AddMetadata("wallet address", wallet)
creditNote, err := service.stripeClient.CreditNotes().New(params) creditNote, err := service.stripeClient.CreditNotes().New(params)
if err != nil { if err != nil {