Skip to content

Commit

Permalink
fix(payments): fix error when missing scheme (#1157)
Browse files Browse the repository at this point in the history
  • Loading branch information
paul-nicolas authored Jan 29, 2024
1 parent cd821f7 commit 55616d9
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -251,8 +251,8 @@ func createBatchElement(
Amount: big.NewInt(balanceTransaction.Source.Refund.Charge.Amount - balanceTransaction.Source.Refund.Charge.AmountRefunded),
InitialAmount: big.NewInt(balanceTransaction.Source.Refund.Charge.Amount),
Asset: currency.FormatAsset(supportedCurrenciesWithDecimal, transactionCurrency),
Scheme: models.PaymentSchemeOther,
RawData: rawData,
Scheme: models.PaymentScheme(balanceTransaction.Source.Refund.Charge.PaymentMethodDetails.Card.Brand),
CreatedAt: time.Unix(balanceTransaction.Source.Refund.Charge.Created, 0),
}

Expand Down Expand Up @@ -306,8 +306,8 @@ func createBatchElement(
Amount: big.NewInt(balanceTransaction.Source.Refund.Charge.Amount - balanceTransaction.Source.Refund.Charge.AmountRefunded),
InitialAmount: big.NewInt(balanceTransaction.Source.Refund.Charge.Amount),
Asset: currency.FormatAsset(supportedCurrenciesWithDecimal, transactionCurrency),
Scheme: models.PaymentSchemeOther,
RawData: rawData,
Scheme: models.PaymentScheme(balanceTransaction.Source.Refund.Charge.PaymentMethodDetails.Card.Brand),
CreatedAt: time.Unix(balanceTransaction.Source.Refund.Charge.Created, 0),
}

Expand Down

0 comments on commit 55616d9

Please sign in to comment.