Add card token (#40)

This commit is contained in:
struga 2022-06-03 13:40:49 +03:00 committed by GitHub
parent e5f5192534
commit 4c64ebaa3b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 7 additions and 3 deletions

View File

@ -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>

View File

@ -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();
}

View File

@ -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();

View File

@ -22,5 +22,7 @@ public class CardData {
private String cvv2;
@ToString.Exclude
private String cardHolder;
@ToString.Exclude
private String cardToken;
}