Added email and phone (#44)

Co-authored-by: Inal Arsanukaev <aiz@empayre.com>
This commit is contained in:
Inal Arsanukaev 2022-08-08 15:23:58 +03:00 committed by GitHub
parent ddea6b66c7
commit 08b04350e3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -82,6 +82,8 @@ public class CtxToEntryModelConverter implements Converter<PaymentContext, Entry
.details(Objects.requireNonNullElse(details.getDescription(), details.getProduct()))
.payerInfo(PayerInfo.builder()
.ip(ProxyProviderPackageCreators.extractIpAddress(context))
.email(payment.getContactInfo().getEmail())
.phone(payment.getContactInfo().getPhoneNumber())
.build())
.adapterConfigurations(adapterConfigurations)
.providerTrxId(trx != null ? trx.getId() : temporaryContext.getProviderTrxId())