|
|
@@ -6,13 +6,13 @@ import lombok.Getter;
|
|
|
* 支付方式
|
|
|
*/
|
|
|
public enum PaymentType {
|
|
|
- WeChat("微信", false, "WxPaymentMainService"),
|
|
|
- UnionFrictionlessPay("银联无感支付", true, "UnionFrictionlessPayMainService"),
|
|
|
- LakalaFrictionlessPay("拉卡拉无感支付", true, ""),
|
|
|
- UserWallet("个人钱包", false, "WalletMainService"),
|
|
|
- QrCode("微信支付", false, ""),
|
|
|
- WxQrCode("微信付款码支付", false, ""),
|
|
|
- ZfbQrCode("支付宝付款码支付", false, ""),
|
|
|
+ WeChat("微信", false, "WxPaymentMainService", null),
|
|
|
+ UnionFrictionlessPay("银联无感支付", true, "UnionFrictionlessPayMainService", null),
|
|
|
+ LakalaFrictionlessPay("拉卡拉快捷支付", true, "", PaymentChannelType.SecretFreePayment),
|
|
|
+ UserWallet("个人钱包", false, "WalletMainService", null),
|
|
|
+ QrCode("微信支付", false, "", null),
|
|
|
+ WxQrCode("微信付款码支付", false, "", null),
|
|
|
+ ZfbQrCode("支付宝付款码支付", false, "", null),
|
|
|
;
|
|
|
|
|
|
@Getter
|
|
|
@@ -25,9 +25,13 @@ public enum PaymentType {
|
|
|
@Getter
|
|
|
private boolean payIsAsync;
|
|
|
|
|
|
- PaymentType(String remark, boolean payIsAsync, String serviceBeanName) {
|
|
|
+ @Getter
|
|
|
+ private PaymentChannelType channelType;
|
|
|
+
|
|
|
+ PaymentType(String remark, boolean payIsAsync, String serviceBeanName, PaymentChannelType channelType) {
|
|
|
this.remark = remark;
|
|
|
this.payIsAsync = payIsAsync;
|
|
|
this.serviceBeanName = serviceBeanName;
|
|
|
+ this.channelType = channelType;
|
|
|
}
|
|
|
}
|