Logo
Explore Help
Register Sign In
niuniu/sub2api-cn-relay-manager
1
0
Fork 0
You've already forked sub2api-cn-relay-manager
Code Issues Pull Requests Actions Packages Projects Releases Wiki Activity
Files
0d9df842e4a032caee0827bbd9d6f4b1e9068dca
sub2api-cn-relay-manager/backend/internal/payment/amount.go

10 lines
220 B
Go
Raw Normal View History

feat(payment): add complete payment system with multi-provider support Add a full payment and subscription system supporting EasyPay (Alipay/WeChat), Stripe, and direct Alipay/WeChat Pay providers with multi-instance load balancing.
2026-04-10 21:08:51 +08:00
package payment
func YuanToFen(yuanStr string) (int64, error) {
feat: add Airwallex payments and multi-currency support
2026-05-11 10:45:07 +08:00
return AmountToMinorUnit(yuanStr, DefaultPaymentCurrency)
feat(payment): add complete payment system with multi-provider support Add a full payment and subscription system supporting EasyPay (Alipay/WeChat), Stripe, and direct Alipay/WeChat Pay providers with multi-instance load balancing.
2026-04-10 21:08:51 +08:00
}
func FenToYuan(fen int64) float64 {
feat: add Airwallex payments and multi-currency support
2026-05-11 10:45:07 +08:00
return MinorUnitToAmount(fen, DefaultPaymentCurrency)
feat(payment): add complete payment system with multi-provider support Add a full payment and subscription system supporting EasyPay (Alipay/WeChat), Stripe, and direct Alipay/WeChat Pay providers with multi-instance load balancing.
2026-04-10 21:08:51 +08:00
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.25.5 Page: 114ms Template: 3ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API