Skip to content

Commit

Permalink
Add 3DS MPI Externo fields to Payment request (#277)
Browse files Browse the repository at this point in the history
* Add 3DS MPI Externo fields to Payment request

* bump version

---------

Co-authored-by: Danielen Cestari Nunes <[email protected]>
  • Loading branch information
rhames07 and danielen-meli committed Jul 16, 2024
1 parent 3a3905b commit 4410bc7
Show file tree
Hide file tree
Showing 6 changed files with 42 additions and 4 deletions.
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,10 @@ already.
1. Append MercadoPago dependencies to pom.xml

```xml

<dependency>
<groupId>com.mercadopago</groupId>
<artifactId>sdk-java</artifactId>
<version>2.1.25</version>
<version>2.1.26</version>
</dependency>
```

Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

<groupId>com.mercadopago</groupId>
<artifactId>sdk-java</artifactId>
<version>2.1.25</version>
<version>2.1.26</version>
<packaging>jar</packaging>

<name>Mercadopago SDK</name>
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/mercadopago/MercadoPagoConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
/** Mercado Pago configuration class. */
public class MercadoPagoConfig {

public static final String CURRENT_VERSION = "2.1.25";
public static final String CURRENT_VERSION = "2.1.26";

public static final String PRODUCT_ID = "BC32A7VTRPP001U8NHJ0";

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
package com.mercadopago.client.payment;

import lombok.Builder;
import lombok.Getter;

/** PaymentAuthenticationRequest class. */
@Getter
@Builder
public class PaymentAuthenticationRequest {
/** Type. */
private final String type;

/** Cryptogram. */
private final String cryptogram;

/** 3DS Server Trans ID. */
private final String threeDsServerTransId;

/** ECI. */
private final String eci;

/** 3DS Trans ID. */
private final String dsTransId;

/** ACS Trans ID. */
private final String acsTransId;

/** 3DS Version. */
private final String threeDsVersion;

/** Authentication Status. */
private final String authenticationStatus;
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,7 @@ public class PaymentDataRequest {

/** Rules. */
private final PaymentRulesRequest rules;

/** Authentication. */
private final PaymentAuthenticationRequest authentication;
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
@Builder
public class PaymentMethodRequest {

/** Type. */
private final String type;

/** Data. */
private final PaymentDataRequest data;
}

0 comments on commit 4410bc7

Please sign in to comment.