File tree Expand file tree Collapse file tree 4 files changed +13
-3
lines changed
core/src/main/java/haveno/core Expand file tree Collapse file tree 4 files changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -78,7 +78,8 @@ public enum FormId {
78
78
CASH_APP ,
79
79
PAYPAL ,
80
80
VENMO ,
81
- PAYSAFE ;
81
+ PAYSAFE ,
82
+ WECHAT_PAY ;
82
83
83
84
public static PaymentAccountForm .FormId fromProto (protobuf .PaymentAccountForm .FormId formId ) {
84
85
return ProtoUtil .enumFromProto (PaymentAccountForm .FormId .class , formId .name ());
Original file line number Diff line number Diff line change @@ -38,6 +38,13 @@ public final class WeChatPayAccount extends PaymentAccount {
38
38
new TraditionalCurrency ("GBP" )
39
39
);
40
40
41
+ private static final List <PaymentAccountFormField .FieldId > INPUT_FIELD_IDS = List .of (
42
+ PaymentAccountFormField .FieldId .ACCOUNT_NAME ,
43
+ PaymentAccountFormField .FieldId .ACCOUNT_NR ,
44
+ PaymentAccountFormField .FieldId .TRADE_CURRENCIES ,
45
+ PaymentAccountFormField .FieldId .SALT
46
+ );
47
+
41
48
public WeChatPayAccount () {
42
49
super (PaymentMethod .WECHAT_PAY );
43
50
}
@@ -54,7 +61,7 @@ protected PaymentAccountPayload createPayload() {
54
61
55
62
@ Override
56
63
public @ NonNull List <PaymentAccountFormField .FieldId > getInputFieldIds () {
57
- throw new RuntimeException ( "Not implemented" ) ;
64
+ return INPUT_FIELD_IDS ;
58
65
}
59
66
60
67
public void setAccountNr (String accountNr ) {
Original file line number Diff line number Diff line change @@ -369,7 +369,8 @@ public static List<PaymentMethod> getPaymentMethods() {
369
369
CASH_APP_ID ,
370
370
PAYPAL_ID ,
371
371
VENMO_ID ,
372
- PAYSAFE_ID );
372
+ PAYSAFE_ID ,
373
+ WECHAT_PAY_ID );
373
374
return paymentMethods .stream ().filter (paymentMethod -> paymentMethodIds .contains (paymentMethod .getId ())).collect (Collectors .toList ());
374
375
}
375
376
Original file line number Diff line number Diff line change @@ -1903,6 +1903,7 @@ message PaymentAccountForm {
1903
1903
PAYPAL = 17 ;
1904
1904
VENMO = 18 ;
1905
1905
PAYSAFE = 19 ;
1906
+ WECHAT_PAY = 20 ;
1906
1907
}
1907
1908
FormId id = 1 ;
1908
1909
repeated PaymentAccountFormField fields = 2 ;
You can’t perform that action at this time.
0 commit comments