Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
f1a625a
Merge pull request #17 from danieldhp/master
netojoaobatista May 3, 2017
a5783ae
Incluindo campos faltantes de boleto seguindo documentação WEB
bgoyanna Jul 13, 2017
429eb2f
Incluindo Cartão de Débito. Erro na documentação do site onde especif…
bgoyanna Jul 13, 2017
f9acc5e
Incluindo o AuthenticationUrl para pagamento com Débito para redireci…
bgoyanna Jul 13, 2017
1fd5d1e
Merge pull request #20 from bgoyanna/master
netojoaobatista Jul 13, 2017
472ea9e
Corrigindo o nome do campo ReceivedDate no JSON que estava ReceiveDate.
bgoyanna Jul 14, 2017
364b2d8
Incluindo chamada de mapeamento de MerchantOrderId para PaymentId
bgoyanna Jul 14, 2017
cf9fc25
Merge pull request #21 from bgoyanna/master
netojoaobatista Jul 14, 2017
a7f32ad
Adiciona VoidedAmound e VoidedDate ao modelo Payment
Apr 9, 2019
0db72e2
Adiciona ExternalAuthentication na sdk.
Jul 2, 2019
4090cb3
Adiciona referenceId e version para receber a ExternalAuthentication.
Jul 2, 2019
81297e9
Altera construtor para receber mais parametros e adiciona construtor …
Jul 12, 2019
a768254
Adiciona opção de pagamento por QRCode
Jul 29, 2019
3fd6ff8
Adiciona novos campos para o envio de dados de Facilitadores de Pagam…
pumezaki Mar 5, 2020
a6544fc
Adiciona novos campos para os dados de Facilitadores de Pagamento
pumezaki Mar 5, 2020
d60385d
Merge branch 'master' of https://github.com/EvoluServices/API-3.0-Java
pumezaki Mar 10, 2020
01e9e0a
Incrementa versão do SDK
pumezaki Mar 5, 2020
1227b84
Volta à versão original
pumezaki Mar 10, 2020
28d7dbd
Altera content-type de envio para "application/json; charset-utf8"
Mar 16, 2020
a88a4f5
Adiciona novos campos de subadquirência solicitados pela Cielo
pumezaki Nov 3, 2020
1802f43
Remove campo softDescriptor
pumezaki Nov 5, 2020
de488aa
Inclui Setter do campo PhoneNumber do SubEstablishment
pumezaki Nov 5, 2020
2173988
Incrementa versão
pumezaki Nov 5, 2020
6f27191
Corrige a utilizacao do HttpClient
Nov 17, 2020
8b4a8a5
Merge pull request #1 from EvoluServices/fix/http-client
oliveiragabriel07 Nov 17, 2020
df9ebbe
Adiciona campo InitiatedTransactionIndicator
matheustirabassievo Nov 16, 2023
7553d42
Merge pull request #2 from EvoluServices/feature/cielo-initiated-tran…
matheustirabassievo Nov 16, 2023
5661f56
Adiciona a razão social na requisição
pumezaki Mar 21, 2025
ce2d07b
Merge pull request #3 from EvoluServices/feature/razao-social
joaoscalett Mar 21, 2025
61ccd9f
Adiciona SolutionType na requsição
evowagner Oct 15, 2025
cc6479e
Adiciona SolutionType na requsição
evowagner Oct 15, 2025
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
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ local.properties
.settings/
.project
.classpath
.idea/
*.iml

# Maven

Expand Down
12 changes: 11 additions & 1 deletion api30.sdk/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

<groupId>br.cielo.cieloecommerce</groupId>
<artifactId>api30.sdk</artifactId>
<version>0.0.1-SNAPSHOT</version>
<version>0.0.8-SNAPSHOT</version>
<packaging>jar</packaging>

<name>api30.sdk</name>
Expand Down Expand Up @@ -32,4 +32,14 @@
<version>4.5.2</version>
</dependency>
</dependencies>
<distributionManagement>
<snapshotRepository>
<id>nexus-snapshots</id>
<url>https://repos.evoluservices.com/repository/maven-snapshots/</url>
</snapshotRepository>
<repository>
<id>nexus-releases</id>
<url>https://repos.evoluservices.com/repository/maven-releases/</url>
</repository>
</distributionManagement>
</project>
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import cieloecommerce.sdk.Merchant;
import cieloecommerce.sdk.ecommerce.request.*;
import org.apache.http.client.HttpClient;
import org.apache.http.impl.client.CloseableHttpClient;

import java.io.IOException;

Expand All @@ -12,7 +12,7 @@
public class CieloEcommerce {
private final Merchant merchant;
private final Environment environment;
private HttpClient httpClient;
private CloseableHttpClient httpClient;

/**
* Create an instance of CieloEcommerce choosing the environment where the
Expand All @@ -39,7 +39,7 @@ public CieloEcommerce(Merchant merchant) {
this(merchant, Environment.PRODUCTION);
}

public void setHttpClient(HttpClient httpClient) {
public void setHttpClient(CloseableHttpClient httpClient) {
this.httpClient = httpClient;
}

Expand Down Expand Up @@ -69,7 +69,7 @@ public Sale createSale(Sale sale) throws IOException, CieloRequestException {

/**
* Create a card token to be stored on store
*
*
* @param cardToken
* The credit card data
* @return The card token
Expand Down Expand Up @@ -113,6 +113,31 @@ public Sale querySale(String paymentId) throws IOException, CieloRequestExceptio
return sale;
}

/**
* Query a Sale on Cielo by paymentId
*
* @param paymentId
* The paymentId to be queried
* @return The Sale with authorization, tid, etc. returned by Cielo.
* @throws IOException
* @throws CieloRequestException
* if anything gets wrong.
* @see <a href=
* "https://developercielo.github.io/Webservice-3.0/english.html#error-codes">Error
* Codes</a>
*/
public QueryMerchantOrderResponse queryMerchantOrder(String merchantOrderId) throws IOException, CieloRequestException {
QueryMerchantOrderRequest querySaleRequest = new QueryMerchantOrderRequest(merchant, environment);

querySaleRequest.setHttpClient(httpClient);

QueryMerchantOrderResponse merchantOrder = querySaleRequest.execute(merchantOrderId);

return merchantOrder;
}



/**
* Query a RecurrentSale on Cielo by recurrentPaymentId
*
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
package cieloecommerce.sdk.ecommerce;

import com.google.gson.annotations.SerializedName;

public class DebitCard {

@SerializedName("CardNumber")
private String cardNumber;

@SerializedName("Holder")
private String holder;

@SerializedName("ExpirationDate")
private String expirationDate;

@SerializedName("SecurityCode")
private String securityCode;

@SerializedName("Brand")
private String brand;

public DebitCard(String securityCode, String brand) {
setSecurityCode(securityCode);
setBrand(brand);
}

public String getBrand() {
return brand;
}

public DebitCard setBrand(String brand) {
this.brand = brand;
return this;
}

public String getCardNumber() {
return cardNumber;
}

public DebitCard setCardNumber(String cardNumber) {
this.cardNumber = cardNumber;
return this;
}

public String getExpirationDate() {
return expirationDate;
}

public DebitCard setExpirationDate(String expirationDate) {
this.expirationDate = expirationDate;
return this;
}

public String getHolder() {
return holder;
}

public DebitCard setHolder(String holder) {
this.holder = holder;
return this;
}

public String getSecurityCode() {
return securityCode;
}

public DebitCard setSecurityCode(String securityCode) {
this.securityCode = securityCode;
return this;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
package cieloecommerce.sdk.ecommerce;

import com.google.gson.annotations.SerializedName;

public class ExternalAuthentication {

@SerializedName("Cavv")
private String cavv;

@SerializedName("Xid")
private String xid;

@SerializedName("Eci")
private String eci;

@SerializedName("Version")
private String version;

@SerializedName("ReferenceID")
private String referenceId;

public ExternalAuthentication(String cavv,
String xid,
String eci,
String version,
String referenceId) {
this.cavv = cavv;
this.xid = xid;
this.eci = eci;
this.version = version;
this.referenceId = referenceId;
}

public ExternalAuthentication() {
}

public String getCavv() {
return cavv;
}

public ExternalAuthentication setCavv(String cavv) {
this.cavv = cavv;
return this;
}

public String getXid() {
return xid;
}

public ExternalAuthentication setXid(String xid) {
this.xid = xid;
return this;
}

public String getEci() {
return eci;
}

public ExternalAuthentication setEci(String eci) {
this.eci = eci;
return this;
}

public String getVersion() {
return version;
}

public ExternalAuthentication setVersion(String version) {
this.version = version;
return this;
}

public String getReferenceId() {
return referenceId;
}

public ExternalAuthentication setReferenceId(String referenceId) {
this.referenceId = referenceId;
return this;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
package cieloecommerce.sdk.ecommerce;

import com.google.gson.annotations.SerializedName;

/**
*
* Identifica se a transação foi iniciada pelo titular do cartão ou pela loja. Válido apenas para
* bandeira Mastercard.
*
* Category: Categoria do indicador de início da transação.
* Valores possíveis:
* - “C1”: transação inciada pelo portador do cartão;
* - “M1”: transação recorrente ou parcelada iniciada pela loja;
* - “M2”: transação iniciada pela loja.
*
* Subcategory: Subcategoria do indicador.
* Valores possíveis:
*
* Se Category = “C1” ou “M1”
* - CredentialsOnFile
* - StandingOrder
* - Subscription
* - Installment
*
* Se Category = “M2”
* - PartialShipment
* - RelatedOrDelayedCharge
* - NoShow
* - Resubmission
*/
public class InitiatedTransactionIndicator {
@SerializedName("Category")
private String category;

@SerializedName("Subcategory")
private String subcategory;

public String getCategory() {
return this.category;
}

public InitiatedTransactionIndicator setCategory(String category) {
this.category = category;
return this;
}

public String getSubcategory() {
return this.subcategory;
}

public InitiatedTransactionIndicator setSubcategory(String subcategory) {
this.subcategory = subcategory;
return this;
}
}
Loading