pay_config.dart 671 B

1234567891011121314151617181920212223242526
  1. class PayInfo {
  2. String key;
  3. PayType type;
  4. String icon;
  5. String name;
  6. String desc;
  7. PayInfo(this.type, this.key, this.icon, this.name, {this.desc});
  8. }
  9. enum PayType {
  10. alipay, wechat, yue
  11. }
  12. class PayConfig {
  13. static const String wechatAppId = "123";
  14. static const String universalLink = "twong://shotshock.shop/open";
  15. static List<PayInfo> get payTypes {
  16. return [
  17. PayInfo(PayType.alipay, "alipay", "icon", "支付宝", desc: "使用支付宝快捷支付"),
  18. PayInfo(PayType.wechat, "weixin", "icon", "微信", desc: "使用微信快捷支付"),
  19. PayInfo(PayType.yue, "yue", "icon", "余额", desc: "当前可用余额: "),
  20. ];
  21. }
  22. }