mirror of
https://github.com/valitydev/fraudbusters-mg-connector.git
synced 2024-11-06 01:15:17 +00:00
parent
4a28a6483c
commit
3c080dbc22
4
pom.xml
4
pom.xml
@ -47,10 +47,6 @@
|
||||
<groupId>dev.vality</groupId>
|
||||
<artifactId>damsel</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>dev.vality</groupId>
|
||||
<artifactId>mamsel</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>dev.vality</groupId>
|
||||
<artifactId>machinegun-proto</artifactId>
|
||||
|
@ -13,7 +13,6 @@ import dev.vality.fraudbusters.mg.connector.mapper.initializer.InfoInitializer;
|
||||
import dev.vality.fraudbusters.mg.connector.service.HgClientService;
|
||||
import dev.vality.geck.common.util.TBaseUtil;
|
||||
import dev.vality.machinegun.eventsink.MachineEvent;
|
||||
import dev.vality.mamsel.TokenProviderUtil;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.stereotype.Component;
|
||||
@ -108,7 +107,7 @@ public class PaymentMapper implements Mapper<InvoiceChange, MachineEvent, Paymen
|
||||
}
|
||||
|
||||
public boolean isMobile(PaymentTool paymentTool) {
|
||||
return paymentTool.isSetBankCard() && TokenProviderUtil.getTokenProviderName(paymentTool.getBankCard()) != null;
|
||||
return paymentTool.isSetBankCard() && paymentTool.getBankCard().getPaymentToken() != null;
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user