Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/main/java/com/global/api/entities/Transaction.java
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ public class Transaction {
private TokenData tokenData;
@Getter @Setter
private InstallmentData installmentData;
@Getter @Setter private String paymentMethodResult;

public Customer getCustomerData() {
return customerData;
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/global/api/mapping/GpApiMapping.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
import com.global.api.utils.EnumUtils;
import com.global.api.utils.JsonDoc;
import com.global.api.utils.StringUtils;
import com.google.gson.JsonElement;
import lombok.var;
import org.joda.time.DateTime;

Expand Down Expand Up @@ -142,6 +141,7 @@ public static Transaction mapResponse(String rawResponse) throws GatewayExceptio
transaction.setMultiCapture(getIsMultiCapture(json));
transaction.setFingerPrint(paymentMethod.getString("fingerprint"));
transaction.setFingerPrintIndicator(paymentMethod.getString("fingerprint_presence_indicator"));
transaction.setPaymentMethodResult(paymentMethod.getString("result"));

if (paymentMethod.has("bnpl")) {
mapBNPLResponse(json, transaction);
Expand Down