API Reference
API Reference

Enviando uma requisição com dados para o antifraude

#region Monta a requisicao

// Cria o comprador.
Buyer buyer = new Buyer() {
    AddressCollection = new Collection<BuyerAddress>(),
    Birthdate = new DateTime(1990, 8, 20),
    BuyerReference = "C3PO",
    DocumentNumber = "12345678901",
    DocumentType = DocumentTypeEnum.CPF,
    Email = "[email protected]",
    EmailType = EmailTypeEnum.Personal,
    Gender = GenderEnum.M,
    HomePhone = "(21)123456789",
    MobilePhone = "(21)987654321",
    Name = "Luke Skywalker",
    PersonType = PersonTypeEnum.Person,
    WorkPhone = "(21)28467902"
};
// Adiciona um endereço para o comprador.
buyer.AddressCollection.Add(new BuyerAddress() {
    AddressType = AddressTypeEnum.Residential,
    City = "Tatooine",
    Complement = "",
    Country = CountryEnum.Brazil.ToString(),
    District = "Mos Eisley",
    Number = "123",
    State = "RJ",
    Street = "Mos Eisley Cantina",
    ZipCode = "20001000"
});

// Cria a transação de cartão de crédito.
var creditCardTransaction = new CreditCardTransaction() {
    AmountInCents = 10000,
    CreditCard = new CreditCard() {
        BillingAddress = new BillingAddress() {
            City = "Tatooine",
            Complement = "",
            Country = CountryEnum.Brazil.ToString(),
            District = "Mos Eisley",
            Number = "123",
            State = "RJ",
            Street = "Mos Eisley Cantina",
            ZipCode = "20001000"
        },
        CreditCardBrand = CreditCardBrandEnum.Visa,
        CreditCardNumber = "4111111111111111",
        ExpMonth = 10,
        ExpYear = 22,
        HolderName = "LUKE SKYWALKER",
        SecurityCode = "123"
    },
    InstallmentCount = 1
};

// Opções da requisição (Opcional)
/*
SaleOptions saleOptions = new SaleOptions() {
    IsAntiFraudEnabled = true, // Habilita a integração com o serviço de anti fraude
};
*/

// Cria o carrinho de compras.
ShoppingCart shoppintCart = new ShoppingCart() {
    DeliveryAddress = new DeliveryAddress() {
        City = "Galaxy far far away",
        Complement = "Bridge",
        Country = CountryEnum.Brazil.ToString(),
        District = "Command Room",
        Number = "321",
        State = "RJ",
        Street = "Death Star",
        ZipCode = "10002000"
    },
    FreightCostInCents = 2000,
    ShoppingCartItemCollection = new Collection<ShoppingCartItem>()
};

// Adiciona um produto no carrinho de compras.
shoppintCart.ShoppingCartItemCollection.Add(new ShoppingCartItem() {
    Description = "Red Lightsaber",
    ItemReference = "NumeroDoProduto",
    Name = "Lightsaber",
    Quantity = 1,
    TotalCostInCents = 8000,
});

#endregion

// Cria requisição.
var createSaleRequest = new CreateSaleRequest() {
    Buyer = buyer,
    // Adiciona a transação de cartão de crédito na requisição.
    CreditCardTransactionCollection = new Collection<CreditCardTransaction>(new CreditCardTransaction[] { creditCardTransaction }),
    //Options = saleOptions, //Caso tenha sido criado, adicionar o objeto saleOptions
    Order = new Order() {
        OrderReference = "NumeroDoPedido"
    },
    ShoppingCartCollection = new Collection<ShoppingCart>(new ShoppingCart[] { shoppintCart })
};

// Coloque a sua MerchantKey aqui.
Guid merchantKey = Guid.Parse("00000000-0000-0000-0000-000000000000");

// Cria o client que enviará a transação.
var serviceClient = new GatewayServiceClient(merchantKey, new Uri("https://sandbox.mundipaggone.com"));

// Autoriza a transação e recebe a resposta do gateway.
var httpResponse = serviceClient.Sale.Create(createSaleRequest);

Console.WriteLine("Código retorno: {0}", httpResponse.HttpStatusCode);
Console.WriteLine("Chave do pedido: {0}", httpResponse.Response.OrderResult.OrderKey);
if (httpResponse.Response.CreditCardTransactionResultCollection != null) {
    Console.WriteLine("Status transação: {0}", httpResponse.Response.CreditCardTransactionResultCollection.FirstOrDefault().CreditCardTransactionStatus);
}
<?php
try
{
    // Carrega dependências
    require_once(dirname(__FILE__) . '\vendor\autoload.php');

    // Define a url utilizada
    \Gateway\ApiClient::setBaseUrl("https://sandbox.mundipaggone.com");

    // Define a chave de loja
    \Gateway\ApiClient::setMerchantKey("85328786-8BA6-420F-9948-5352F5A183EB");

    // Cria objeto da requisição
    $request = new \Gateway\One\DataContract\Request\CreateSaleRequest();

    // Dados do comprador
    $request->getBuyer()
    ->setName("Luke Skywalker")
    ->setPersonType(\Gateway\One\DataContract\Enum\PersonTypeEnum::PERSON)
    ->setBuyerReference("C3PO")
    ->setDocumentNumber("12345678901")
    ->setDocumentType(\Gateway\One\DataContract\Enum\DocumentTypeEnum::CPF)
    ->setEmail("[email protected]")
    ->setEmailType(\Gateway\One\DataContract\Enum\EmailTypeEnum::PERSONAL)
    ->setGender(\Gateway\One\DataContract\Enum\GenderEnum::MALE)
    ->setHomePhone("(21)123456789")
    ->setMobilePhone("(21)987654321")
    ->setWorkPhone("(21)28467902")
    ->setBirthDate(\DateTime::createFromFormat('d/m/Y', '20/08/1990'))
    ->setFacebookId("lukeskywalker8917")
    ->setTwitterId("@lukeskywalker8917")
    ->setCreateDateInMerchant(new \DateTime())
    ->addAddress()
    ->setAddressType(\Gateway\One\DataContract\Enum\AddressTypeEnum::RESIDENTIAL)
    ->setStreet("Mos Eisley Cantina")
    ->setNumber("123")
    ->setComplement("")
    ->setDistrict("Mos Eisley")
    ->setCity("Tatooine")
    ->setState("RJ")
    ->setZipCode("20001000")
    ->setCountry(\Gateway\One\DataContract\Enum\CountryEnum::BRAZIL);

    // Dados da transação de cartão de crédito
    $creditCardTransaction = new \Gateway\One\DataContract\Request\CreateSaleRequestData\CreditCardTransaction();
    $request->addCreditCardTransaction($creditCardTransaction);
    $creditCardTransaction
    ->setAmountInCents(10000)
    ->setInstallmentCount(1)
    ->setCreditCardOperation(\Gateway\One\DataContract\Enum\CreditCardOperationEnum::AUTH_ONLY)
    ->setTransactionDateInMerchant(new DateTime())
    ->setTransactionReference("NumeroDaTransacao")
    ->getCreditCard()
    ->setCreditCardBrand(\Gateway\One\DataContract\Enum\CreditCardBrandEnum::VISA)
    ->setCreditCardNumber("4111111111111111")
    ->setExpMonth(10)
    ->setExpYear(2022)
    ->setHolderName("LUKE SKYWALKER")
    ->setSecurityCode("123")
    ->getBillingAddress()
    ->setAddressType(\Gateway\One\DataContract\Enum\AddressTypeEnum::BILLING)
    ->setStreet("Mos Eisley Cantina")
    ->setNumber("123")
    ->setComplement("")
    ->setDistrict("Mos Eisley")
    ->setCity("Tatooine")
    ->setState("RJ")
    ->setZipCode("20001000")
    ->setCountry(\Gateway\One\DataContract\Enum\CountryEnum::BRAZIL);

    //Opções do pedido (Opcional)
    //$request->getOptions()
    //->enableAntiFraud();

    //Dados do pedido
    $request->getOrder()
    ->setOrderReference("NumeroDoPedido");            

    //Dados do Carrinho de compras
    $shoppingCart = $request->addShoppingCart();
    $shoppingCart->setDeliveryDeadline(DateTime::createFromFormat("Y-m-d H:i:s", '2015-12-14 18:36:45'));
    $shoppingCart->setEstimatedDeliveryDate(DateTime::createFromFormat("Y-m-d H:i:s", '2015-12-14 18:36:45'));
    $shoppingCart->setFreightCostInCents(2000);
    $shoppingCart->setShippingCompany("Empire");
    $shoppingCart->getDeliveryAddress()
    ->setAddressType(\Gateway\One\DataContract\Enum\AddressTypeEnum::SHIPPING)
    ->setStreet("Death Star")
    ->setNumber("321")
    ->setComplement("Bridge")
    ->setDistrict("Command Room")
    ->setCity("Galaxy far far away")
    ->setState("RJ")
    ->setZipCode("10002000")
    ->setCountry(\Gateway\One\DataContract\Enum\CountryEnum::BRAZIL);

    //Adiciona um item ao carrinho
    $shoppingCart->addShoppingCartItem()
    ->setDescription("Red Lightsaber")
    ->setDiscountAmountInCents(0)
    ->setItemReference("NumeroDoProduto")
    ->setName("Lightsaber")
    ->setQuantity(1)
    ->setUnitCostInCents(8000)
    ->setTotalCostInCents(8000);

    // Cria um novo objeto ApiClient
    $client = new Gateway\ApiClient();

    // Faz a chamada de criação
    $response = $client->createSale($request);

}
catch (\Gateway\One\DataContract\Report\CreditCardError $error)
{
    $response = array("message" => $error->getMessage());
}
catch (\Gateway\One\DataContract\Report\ApiError $error)
{
    $response = array("message" => $error->errorCollection->ErrorItemCollection[0]->Description);
}
catch (\Exception $ex)
{
    $response = array("message" => "Ocorreu um erro inesperado.");
}
finally
{
    header('Content-Type: application/json');
    var_dump($response);
}
require 'mundipagg_sdk'

# variable with merchant key
merchantKey = '85328786-8BA6-420F-9948-5352F5A183EB'

# instantiate class with request methods
# :sandbox for sandbox ambient 
# :production for production ambient
gateway = Gateway::Gateway.new(:sandbox, merchantKey)

# create credit card transaction object
creditCardTransaction = Gateway::CreditCardTransaction.new

# 100 reais in cents 
creditCardTransaction.AmountInCents = 10000
creditCardTransaction.CreditCard.BillingAddress.City = 'Tatooine'
creditCardTransaction.CreditCard.BillingAddress.Complement = ''
creditCardTransaction.CreditCard.BillingAddress.Country = 'Brazil'
creditCardTransaction.CreditCard.BillingAddress.District = 'Mos Eisley'
creditCardTransaction.CreditCard.BillingAddress.Number = '123'
creditCardTransaction.CreditCard.BillingAddress.State = 'RJ'
creditCardTransaction.CreditCard.BillingAddress.Street = 'Mos Eisley Cantina'
creditCardTransaction.CreditCard.BillingAddress.ZipCode = '20001000'
creditCardTransaction.CreditCard.CreditCardBrand = 'Visa'
creditCardTransaction.CreditCard.CreditCardNumber = '4111111111111111'
creditCardTransaction.CreditCard.ExpMonth = 10
creditCardTransaction.CreditCard.ExpYear = 22
creditCardTransaction.CreditCard.HolderName = 'LUKE SKYWALKER'
creditCardTransaction.CreditCard.SecurityCode = '123'
creditCardTransaction.InstallmentCount = 1

shoppingCartItem = Gateway::ShoppingCartItemCollection.new
shoppingCartItem.Description = 'Red Lightsaber'
shoppingCartItem.DiscountAmountInCents = 0
shoppingCartItem.ItemReference = 'NumeroDoProduto'
shoppingCartItem.Name = 'Lightsaber'
shoppingCartItem.Quantity = 1
shoppingCartItem.TotalCostInCents = 8000
shoppingCartItem.UnitCostInCents = 0

shoppingCartCollection = Gateway::ShoppingCartCollection.new
shoppingCartCollection.DeliveryAddress.City = 'Galaxy far far away'
shoppingCartCollection.DeliveryAddress.Complement = 'Bridge'
shoppingCartCollection.DeliveryAddress.Country = 'Brazil'
shoppingCartCollection.DeliveryAddress.District = 'Command Room'
shoppingCartCollection.DeliveryAddress.Number = '321'
shoppingCartCollection.DeliveryAddress.State = 'RJ'
shoppingCartCollection.DeliveryAddress.Street = 'Death Star'
shoppingCartCollection.DeliveryAddress.ZipCode = '10002000'
shoppingCartCollection.FreighCostInCents = 2000
shoppingCartCollection.ShoppingCartItemCollection << shoppingCartItem

# creates request object for transaction creation
createSaleRequest = Gateway::CreateSaleRequest.new

buyerAddress = Gateway::BuyerAddress.new
buyerAddress.AddressType = 'Residential'
buyerAddress.City = 'Tatooine'
buyerAddress.Complement = ''
buyerAddress.Country = 'Brazil'
buyerAddress.District = 'Mos Eisley'
buyerAddress.Number = '123'
buyerAddress.State = 'RJ'
buyerAddress.Street = 'Mos Eisley Cantina'
buyerAddress.ZipCode = '20001000'

createSaleRequest.Buyer.AddressCollection << buyerAddress
createSaleRequest.Buyer.Birthdate = DateTime.new(1990,8,20,0,0,0).strftime("%Y-%m-%dT%H:%M:%S")
createSaleRequest.Buyer.BuyerReference = 'C3PO'
createSaleRequest.Buyer.DocumentNumber = '12345678901'
createSaleRequest.Buyer.DocumentType = 'CPF'
createSaleRequest.Buyer.Email = '[email protected]'
createSaleRequest.Buyer.EmailType = 'Personal'
createSaleRequest.Buyer.Gender = 'M'
createSaleRequest.Buyer.HomePhone = '(21)123456789'
createSaleRequest.Buyer.MobilePhone = '(21)987654321'
createSaleRequest.Buyer.Name = 'Luke Skywalker'
createSaleRequest.Buyer.PersonType = 'Person'
createSaleRequest.Buyer.WorkPhone = '(21)28467902'

# adds to the credit card transaction collection
createSaleRequest.CreditCardTransactionCollection << creditCardTransaction
createSaleRequest.Order.OrderReference = 'NumeroDoPedido'

#Enable antifraud analysis (Optional)
#createSaleRequest.Options.IsAntiFraudEnabled = true 

# adds shopping cart collection in the request
createSaleRequest.ShoppingCartCollection << shoppingCartCollection

# make the request and returns a response hash
response = gateway.CreateSale(createSaleRequest)

# prints the response
puts response
# -*- coding: utf-8 -*-

from uuid import UUID
from data_contracts import creditcard, creditcard_transaction, creditcard_transaction_options, create_sale_request, order, buyer_address, buyer, billing_address,sale_options, delivery_address, shopping_cart_item, shopping_cart
from mundipaggOnePython import GatewayServiceClient
from enum_types import PlatformEnvironment, HttpContentTypeEnum

# Cria o endereco do comprador
buyer_address_collection_data = [buyer_address(address_type = 'Residential', city = 'Tatooine', complement = '', country = 'Brazil', district = 'Mos Eisley', number = '123', state = 'RJ', street = 'Mos Eisley Cantina', zip_code = '20001000')]

#Cria o comprador
buyer_data = buyer(address_collection = buyer_address_collection_data, birth_date = '1990-08-20T00:00:00', buyer_reference = 'C3PO', document_number = '12345678901' , document_type = 'CPF', email = '[email protected]', email_type = 'Personal', gender = 'M', home_phone = '(21)123456789', mobile_phone = '(21)987654321', name = 'Luke Skywalker', person_type = 'Person', work_phone = '(21)28467902')

# Criando a transacao de cartao de credito.

billing_address_data = billing_address(city = 'Tatooine', complement = '', country = 'Brazil', district = 'Mos Eisley', number = '123', state = 'RJ', street = 'Mos Eisley Cantina', zip_code = '20001000')
##Coleta os dados do cartão.
creditcard_data = creditcard(billing_address= billing_address_data, creditcard_number='4111111111111111', creditcard_brand='Visa', exp_month=10, exp_year=2018,
                             security_code='123', holder_name='LUKE SKYWALKER')
## Cria a transação de cartao de credito.
transaction_collection = [creditcard_transaction(10000, creditcard_data, 'AuthOnly')]


# Habilita o antiFraud (Opcional)
# sale_options_data = sale_options(is_anti_fraud_enabled = True)

##Cria o numero do pedido
order_data = order(order_reference='NumeroDoPedido')


# Criando o carrinho de compra
## Cria o endereco de entrega para o carrinho de compras
delivery_address_data = delivery_address(city = 'Galaxy far far away', complement = 'Bridge', country = 'Brazil', district = 'Command Room', number = '321', state = 'RJ', street = 'Death Star', zip_code = '10002000')

## Cria a colecao de item do carrinho de compras 
shopping_cart_item_collection_data = [shopping_cart_item(description = 'Red Lightsaber', discount_amount_in_cents = 0, item_reference = 'NumeroDoProduto', name = 'Lightsaber', quantity = 1, total_cost_in_cents = 8000, unit_cost_in_cents = 0)]

## Cria o carrinho de compra
shopping_cart_collection_data = [shopping_cart(delivery_address = delivery_address_data, freight_cost_in_cents = 2000, shopping_cart_item_collection = shopping_cart_item_collection_data)]

# Cria a requisicao
request = create_sale_request(creditcard_transaction_collection=transaction_collection, order = order_data, buyer = buyer_data, shopping_cart_collection = shopping_cart_collection_data)

# Cria a requisicao (Com objeto de opções de antifraude)
#request = create_sale_request(creditcard_transaction_collection=transaction_collection, order = order_data, buyer = buyer_data, shopping_cart_collection = shopping_cart_collection_data, options = sale_options_data)

# Coloque sua MerchantKey aqui.
merchant_key = UUID('85328786-8BA6-420F-9948-5352F5A183EB')
end_point = "https://sandbox.mundipaggone.com"
service_client = GatewayServiceClient(merchant_key, PlatformEnvironment.sandbox, HttpContentTypeEnum.json, end_point)

# envia a transação e recebe a resposta do gateway.
http_response = service_client.sale.create_with_request(request)

#Obtem a resposta em json.
json_response = http_response.json()

print json_response
// Define loja
UUID merchantKey = UUID.fromString("85328786-8BA6-420F-9948-5352F5A183EB"); // Chave da Loja - MerchantKey

// Cria objeto do endereço
BillingAddress billingAddress = new BillingAddress();
billingAddress.setCity("Tatooine");
billingAddress.setComplement("");
billingAddress.setCountry(CountryEnum.Brazil);
billingAddress.setDistrict("Mos Eisley");
billingAddress.setNumber("123");
billingAddress.setState("RJ");
billingAddress.setStreet("Mos Eisley Cantina");
billingAddress.setZipCode("20001000");

// Cria objeto de endereço do Buyer
BuyerAddress buyerAddress = new BuyerAddress();
buyerAddress.setAddressType(AddressTypeEnum.Residential);
buyerAddress.setCity("Tatooine");
buyerAddress.setComplement("");
buyerAddress.setCountry(CountryEnum.Brazil);
buyerAddress.setDistrict("Mos Eisley");
buyerAddress.setNumber("123");
buyerAddress.setState("RJ");
buyerAddress.setStreet("Mos Eisley Cantina");
buyerAddress.setZipCode("20001000");

// Cria coleção de endereços do buyer
ArrayList<BuyerAddress> buyerAddressCollection = new ArrayList<BuyerAddress>();
buyerAddressCollection.add(buyerAddress);

// Cria objeto do buyer
Buyer buyer = new Buyer();
buyer.setAddressCollection(buyerAddressCollection);
buyer.setBirthdate(Date.valueOf("1990-12-11"));
buyer.setBuyerReference("C3PO");
buyer.setDocumentNumber("12345678901");
buyer.setDocumentType(DocumentTypeEnum.CPF);
buyer.setEmail("[email protected]");
buyer.setEmailType(EmailTypeEnum.Personal);
buyer.setGender(GenderEnum.M);
buyer.setHomePhone("(21)123456789");
buyer.setMobilePhone("(21)987654321");
buyer.setName("Luke Skywalker");
buyer.setPersonType(PersonTypeEnum.Person);
buyer.setWorkPhone("(21)28467902");

// Cria um cartão de crédito e define endereço de cobrança
CreditCard creditCard = new CreditCard();
creditCard.setBillingAddress(billingAddress);
creditCard.setCreditCardBrand(CreditCardBrandEnum.Visa);
creditCard.setCreditCardNumber("4111111111111111");
creditCard.setExpMonth(10);
creditCard.setExpYear(22);
creditCard.setHolderName("LUKE SKYWALKER");
creditCard.setSecurityCode("123");

// Cria a transação de cartão de crédito e define cartão criado anteriormente
CreditCardTransaction creditCardTransaction = new CreditCardTransaction();
creditCardTransaction.setAmountInCents(10000L);
creditCardTransaction.setCreditCard(creditCard);
creditCardTransaction.setInstallmentCount(1);

// Cria item o shopping cart
ShoppingCartItem shoppingCartItem = new ShoppingCartItem();
shoppingCartItem.setDescription("Red Lightsaber");
shoppingCartItem.setDiscountAmountInCents(0L);
shoppingCartItem.setItemReference("NumeroDoProduto");
shoppingCartItem.setName("Lightsaber");
shoppingCartItem.setQuantity(1);
shoppingCartItem.setTotalCostInCents(8000);
shoppingCartItem.setUnitCostInCents(0);

// Cria shopping cart
ShoppingCart shoppingCart = new ShoppingCart();
shoppingCart.setDeliveryAddress(new DeliveryAddress());
shoppingCart.getDeliveryAddress().setCity("Galaxy Far Far Away");
shoppingCart.getDeliveryAddress().setComplement("Bridge");
shoppingCart.getDeliveryAddress().setCountry(CountryEnum.Brazil);
shoppingCart.getDeliveryAddress().setDistrict("Command Room");
shoppingCart.getDeliveryAddress().setNumber("321");
shoppingCart.getDeliveryAddress().setState("RJ");
shoppingCart.getDeliveryAddress().setStreet("Death Star");
shoppingCart.getDeliveryAddress().setZipCode("10002000");
shoppingCart.setFreightCostInCents(2000);
shoppingCart.setShoppingCartItemCollection(new ArrayList<>());
shoppingCart.getShoppingCartItemCollection().add(shoppingCartItem);

// Cria o objeto order para adicionar o Order Reference
Order order = new Order();
order.setOrderReference("NúmeroDoPedido");

// Cria o Sale Request para enviar o objeto de request
CreateSaleRequest createSaleRequest = new CreateSaleRequest();
createSaleRequest.setCreditCardTransactionCollection(new ArrayList<>());
createSaleRequest.getCreditCardTransactionCollection().add(creditCardTransaction);
createSaleRequest.setOrder(order);
createSaleRequest.setShoppingCartCollection(new ArrayList<>());
createSaleRequest.getShoppingCartCollection().add(shoppingCart);

//Parâmetros opcionais para análise antifraude
//createSaleRequest.setOptions(new SaleOptions());
//createSaleRequest.getOptions().setIsAntiFraudEnabled(Boolean.TRUE);

// Cria o cliente que vai enviar a transação
GatewayServiceClient serviceClient = new GatewayServiceClient(merchantKey, "https://sandbox.mundipaggone.com");

// Submete a transação e retorna a resposta do gateway
HttpResponseGenerics<CreateSaleResponse, CreateSaleRequest> httpResponse
        = serviceClient.getSale().Create(createSaleRequest);
{
    "Buyer": {
        "AddressCollection": [
            {
                "AddressType": "Residential",
                "City": "Tatooine",
                "Complement": "",
                "Country": "Brazil",
                "District": "Mos Eisley",
                "Number": "123",
                "State": "RJ",
                "Street": "Mos Eisley Cantina",
                "ZipCode": "20001000"
            }
        ],
        "Birthdate": "1990-08-20T00:00:00",
        "BuyerReference": "C3PO",
        "DocumentNumber": "12345678901",
        "DocumentType": "CPF",
        "Email": "[email protected]",
        "EmailType": "Personal",
        "Gender": "M",
        "HomePhone": "(21)123456789",
        "MobilePhone": "(21)987654321",
        "Name": "Luke Skywalker",
        "PersonType": "Person",
        "WorkPhone": "(21)28467902"
    },
    "CreditCardTransactionCollection": [
        {
            "AmountInCents": 10000,
            "CreditCard": {
                "BillingAddress": {
                    "City": "Tatooine",
                    "Complement": "",
                    "Country": "Brazil",
                    "District": "Mos Eisley",
                    "Number": "123",
                    "State": "RJ",
                    "Street": "Mos Eisley Cantina",
                    "ZipCode": "20001000"
                },
                "CreditCardBrand": "Visa",
                "CreditCardNumber": "4111111111111111",
                "ExpMonth": 10,
                "ExpYear": 22,
                "HolderName": "LUKE SKYWALKER",
                "SecurityCode": "123"
            },
            "InstallmentCount": 1
        }
    ],
    "Order": {
        "OrderReference": "NumeroDoPedido"
    },
    "ShoppingCartCollection": [
        {
            "DeliveryAddress": {
                "City": "Galaxy far far away",
                "Complement": "Bridge",
                "Country": "Brazil",
                "District": "Command Room",
                "Number": "321",
                "State": "RJ",
                "Street": "Death Star",
                "ZipCode": "10002000"
            },
            "FreightCostInCents": 2000,
            "ShoppingCartItemCollection": [
                {
                    "Description": "Red Lightsaber",
                    "DiscountAmountInCents": 0,
                    "ItemReference": "NumeroDoProduto",
                    "Name": "Lightsaber",
                    "Quantity": 1,
                    "TotalCostInCents": 8000,
                    "UnitCostInCents": 8000
                }
            ]
        }
    ]
}

As tags e exemplos apresentados aqui em cima, mostram como você deve nos enviar uma transação caso utilize o antifraude.

Essa requisição precisa que os dados do comprador sejam enviados, assim como os dados do carrinho de compras. Por isso, é importante que o seu ecommerce esteja preparado e tenha uma seção de cadastro completa na qual o cliente colocará todas as informações básicas.

Se a sua transação for aprovada pelo antifraude ela será capturada automaticamente mudando o status para: Captured, se a sua transação for recusada ela será cancelada automaticamente alterando o status para Voidedou Refunded.

🚧

Antifraude para boleto

É possível passar boletos no antifraude. Porém, muitas lojas optam por não utilizar, se você deseja que os seus boletos não passem no antifraude, você deve solicitar isso a nossa equipe de Relacionamento com Cliente pelo e-mail [email protected].

Language
Website Localization**/