mirror of
https://github.com/valitydev/adapter-flow-lib.git
synced 2024-11-06 00:05:22 +00:00
Add card token (#40)
This commit is contained in:
parent
e5f5192534
commit
4c64ebaa3b
2
pom.xml
2
pom.xml
@ -12,7 +12,7 @@
|
||||
</parent>
|
||||
|
||||
<artifactId>adapter-flow-lib</artifactId>
|
||||
<version>0.1.10</version>
|
||||
<version>0.1.11</version>
|
||||
<packaging>jar</packaging>
|
||||
|
||||
<name>adapter-flow-lib</name>
|
||||
|
@ -115,7 +115,8 @@ public class CtxToEntryModelConverter implements Converter<PaymentContext, Entry
|
||||
.pan(cardData.getPan())
|
||||
.cvv2(CardDataUtils.extractCvv2(sessionData))
|
||||
.expYear(cardData.getExpYear())
|
||||
.expMonth(cardData.getExpMonth());
|
||||
.expMonth(cardData.getExpMonth())
|
||||
.cardToken(ProxyProviderPackageExtractors.extractBankCardToken(paymentResource));
|
||||
}
|
||||
return cardDataBuilder.build();
|
||||
}
|
||||
|
@ -103,7 +103,8 @@ public class RecCtxToEntryModelConverter implements Converter<RecurrentTokenCont
|
||||
.pan(cardData.getPan())
|
||||
.cvv2(CardDataUtils.extractCvv2(sessionData))
|
||||
.expYear(cardData.getExpYear())
|
||||
.expMonth(cardData.getExpMonth());
|
||||
.expMonth(cardData.getExpMonth())
|
||||
.cardToken(ProxyProviderPackageExtractors.extractBankCardToken(paymentResource));
|
||||
}
|
||||
}
|
||||
return cardDataBuilder.build();
|
||||
|
@ -22,5 +22,7 @@ public class CardData {
|
||||
private String cvv2;
|
||||
@ToString.Exclude
|
||||
private String cardHolder;
|
||||
@ToString.Exclude
|
||||
private String cardToken;
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user