Skip to content

Commit

Permalink
feat: Support stripe
Browse files Browse the repository at this point in the history
  • Loading branch information
scorpiotzh committed Aug 8, 2023
1 parent e362cdf commit 42f2ddd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions notify/notify_order.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ func SendLarkOrderNotify(p *SendLarkOrderNotifyParam) {
amount = amount.DivRound(decimal.New(1, 2), 2)
case tables.TokenIdDoge:
amount = amount.DivRound(decimal.New(1, 8), 8)
case tables.TokenIdStripeUSD:
amount = amount.DivRound(decimal.New(1, 2), 2)
}
msg = fmt.Sprintf(msg, p.Account, p.OrderId, address, p.PayTokenId, amount.String(), time.Now().Format("2006-01-02 15:04:05"))
SendLarkTextNotify(p.Key, p.Action, msg)
Expand Down

0 comments on commit 42f2ddd

Please sign in to comment.