Commit 0d0deb04 authored by Gana Samantula's avatar Gana Samantula

Merge branch 'PAYM-4/dynamic-cc-request-response' into 'master'

dynamic address data add. Dummy data ported to response object to have context on fields

See merge request !2
parents 9d85fc75 acfc696e
......@@ -11,34 +11,34 @@ import lombok.Setter;
@NoArgsConstructor
public class CreditCardAdditionalData {
private String avsResult;
private String cardSummary;
private String refusalReasonRaw;
private String eci;
private String acquirerAccountCode;
private String expiryDate;
private String xid;
private String cavvAlgorithm;
private String cardBin;
private String threeDAuthenticated;
private String cvcResultRaw;
private String paymentMethodVariant;
private String acquirerReference;
private String cardIssuingCountry;
private String liabilityShift;
private String authCode;
private String cardHolderName;
private String isCardCommercial;
private String threeDOffered;
private String threeDOfferedResponse;
private String authorisationMid;
private String issuerCountry;
private String cvcResult;
private String cavv;
private String threeDAuthenticatedResponse;
private String avsResultRaw;
private String paymentMethod;
private String cardPaymentMethod;
private String acquirerCode;
private String avsResult = "4 AVS not supported for this card type";
private String cardSummary = "1111";
private String refusalReasonRaw = "AUTHORISED";
private String eci = "N/A";
private String acquirerAccountCode = "TestPmmAcquirerAccount";
private String expiryDate = "8/2018";
private String xid = "N/A";
private String cavvAlgorithm = "N/A";
private String cardBin = "411111";
private String threeDAuthenticated = "false";
private String cvcResultRaw = "1";
private String paymentMethodVariant = "visa";
private String acquirerReference = "7CAI01SQB4C";
private String cardIssuingCountry = "NL";
private String liabilityShift = "false";
private String authCode = "52328";
private String cardHolderName = "Naga Bolla";
private String isCardCommercial = "unknown";
private String threeDOffered = "false";
private String threeDOfferedResponse = "N/A";
private String authorisationMid = "1000";
private String issuerCountry = "NL";
private String cvcResult = "1 Matches";
private String cavv = "N/A";
private String threeDAuthenticatedResponse = "N/A";
private String avsResultRaw = "4";
private String paymentMethod = "visa";
private String cardPaymentMethod = "visa";
private String acquirerCode = "TestPmmAcquirer";
}
......@@ -12,8 +12,8 @@ import lombok.Setter;
public class CreditCardAuthorizeResponse {
CreditCardAdditionalData additionalData;
private String pspReference;
private String resultCode;
private String authCode;
private String pspReference = "8525125417115";
private String resultCode = "Authorised";
private String authCode = "52329";
}
......@@ -14,15 +14,7 @@ public class CreditCardRequest {
CreditCardAmount amount;
String reference;
String merchantAccount;
CreditCardAddress billingAddress;
// String returnUrl; // for Adyen payment, not classic integration, do we need?
@Override
public String toString() {
return "CreditCardRequest{" +
"card=" + card +
", amount=" + amount +
", reference='" + reference + '\'' +
", merchantAccount='" + merchantAccount + '\'' +
'}';
}
}
......@@ -23,8 +23,9 @@ public class CreditCardService {
CreditCardResponse res = new CreditCardResponse();
res.setCardNumber(ccRequest.getCard().getNumber());
res.setCvv(ccRequest.getCard().getCvc());
res.setId("123456789");
CreditCardAddress ccAddress = new CreditCardAddress("5708 Owens Dr", "APT 106","Pleasanton", "USA", "USA", "94588" );
CreditCardAddress ccAddress = ccRequest.getBillingAddress();
res.setBillingAddress(ccAddress);
res.setAmount(ccRequest.getAmount().getValue());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment