e-SiTef

e-SiTef

  • Portal do Desenvolvedor
  • Fale Conosco
  • English

›Anti-Fraud Integration

REST Payment

  • Overview
  • Quick start
  • Transaction creation service
  • Payment effectuation service
  • Payment confirmation service
  • Transaction status query
  • Multiple transactions status query
  • Card query service
  • Payment with multiple payment methods service
  • Payment with multiple payment methods confirmation service
  • External origin payment confirmation service

REST Store

  • Overview

REST Cancel

  • Flow
  • Quick start
  • Cancel via host
  • Cancel external origin
  • Cancel creation service
  • Cancel service

REST Pre-Authorization

  • Overview
  • Quick start
  • Pre-Authorization Creation Service
  • Pre-Authorization effectuation service
  • Pre-Authorization Status Query
  • Pre-Authorization Editing Service
  • Pre-Authorization Editing External Origin Service
  • Pre-Authorization Increment Service
  • Card Query Service
  • Pre-Authorization Capture Service
  • Pre-Authorization Capture External Origin Service

REST Schedule

  • Overview
  • Quick start
  • Transaction creation service
  • Schedule activation service
  • Execution of the scheduled payments
  • Schedule editing flow
  • Quick start: schedule editing
  • Schedule editing creation service
  • Schedule editing service

REST Recharge

  • Overview
  • Quick start
  • Recharge creation service
  • List dealers service
  • List branch data service
  • Recharge effectuation service
  • Recharge confirmation service
  • Recharge query service

HTML Payment

  • Overview
  • Quick start
  • Initializing a payment transaction
  • Status notification
  • Transaction status query
  • Payment with card storage
  • Pages Customization
  • Payment link
  • Split Payment
  • Payment with multiple payment methods
  • 3DS 2.0 Integration

HTML Pre-Authorization

  • Overview

HTML Recharge

  • Overview
  • Quick start
  • Initializing a Recharge transaction

REST Generic Operations

  • Overview
  • Token creation service
  • Generic operation service

JavaScript Payment

  • Overview
  • Quick start
  • Transaction creation service
  • Virtual store's payment page
  • Transaction query service

JavaScript Store

  • Overview
  • Quick start
  • Transaction creation service
  • Virtual store's page

Merchant Web Page

  • Introduction
  • Access to web page
  • Two-Factor Authentication
  • User Configuration
  • Configure Authorizers
  • Transaction Report
  • Daily Summary Report
  • Store Report
  • Recharge Report
  • Analytical Report
  • Transaction Cancellation
  • Schedule
  • Configure Risk Analysis
  • Configure Order Authorizers
  • Users Administration
  • Generate Payment Link

Retry

  • Overview
  • Flow
  • Retry and Schedule

SiTef Routings

  • Bradescard
  • Cetelem
  • GetnetLac
  • Orbitall
  • Vero
  • Bin
  • Sipag

Non SiTef Routings

  • Banco do Brasil
  • Banrisul Vero
  • Cielo e-Commerce
  • EPX
  • e.Rede Rest
  • Fepas HUB
  • Getnet WS
  • GlobalPayments WS
  • IPG
  • Itaú Shopline
  • Mercado Pago
  • PagSeguro
  • PayPal
  • SafraPay
  • Stone WS

Digital Wallet

  • Overview
  • VEE Digital Wallet via CardSE
  • Pix via CardSE
  • Google Pay
  • Visa Checkout
  • Masterpass
  • Samsung Pay
  • Apple Pay
  • Configuration for Digital Wallets

Anti-Fraud Integration

  • Overview
  • Risk analysis service on the HTML Interface
  • Risk analysis response
  • Manual review flow
  • Fraud notification service
  • ClearSale
  • CyberSource
  • Konduto
  • Fraud Detect

General Information

  • Authorizers
  • Digital Certificates
  • API codes
  • Soft Descriptor
  • Signature authentication

Batch Registrations

  • Batch Store Registration
  • Batch Routing Configuration

REST Merchants Registration

  • Overview
  • Quick start
  • Token creation service
  • Merchant creation service
  • Merchant editing service
  • Merchant query service
  • Merchant status query service
  • List merchants service
  • API codes

3DS Server

  • Overview
  • Quick start
  • Transaction creation service
  • Authentication service
  • Transaction query service
  • Challenge messages
  • Decoupled notification
  • Initiating a 3DS Method
  • API codes

CyberSource

Required credentials

As mentioned in "Overview - Required credentials", each institution has credentials that must be obtained for the integration. CyberSource's services demand credentials below:

  • Merchat ID (Merchant Code) - Merchant's key to access CyberSource's back office
  • Shared Secret - Merchant's key to access CyberSource's back office. If key is not registered, e-SiTef will not be able to query status CyberSource. In case any risk analysis transaction is with status pending, the decision configured by Merchant will be executed and e-SiTef will confirm or e-SiTef will cancel the transaction.
  • Key ID - Identification of the Shared Secret.
  • Org ID - * Key used to collect fingerprint data from the payer's browser.
  • p12 certificate - Security certification for orders analysis. The file should have the same name as Merchant ID in CyberSource system.

IMPORTANT: The credentials above should be obtained from CyberSource. It is recommended to contact CyberSource and receive guidance on how to obtain the credentials. Then, the merchant should contact e-SiTef support and send the credentials to register in e-SiTef.

To obtain the Shared Secret and the Key ID follow the instructions at:

https://developer.cybersource.com/api/developer-guides/dita-gettingstarted/authentication/createSharedKey.html

To obtain the .p12 certificate, follow the instructions at:

https://support.cybersource.com/s/article/How-to-Generate-a-Simple-Order-API-Security-Key

Allowed card brands

Listed below the authorizers supported by CyberSource:

  • Visa
  • MasterCard
  • American Express
  • Discover
  • Diners Club
  • Carte Blanche
  • JCB
  • EnRoute
  • JAL
  • Delta
  • Dankort
  • Laser
  • Carte Bleue
  • Carta Si
  • Encoded account number
  • UATP
  • GE Money UK card
  • Style
  • Hipercard
  • Aura
  • Elo
  • Elo Débito (Auxílio Emergencial)

Refund notification due to fraud

When canceling a payment due to fraud, you can notify Cybersource what happened and mark the transaction as fraudulent.

Currently, only the REST Cancellation interface can send complementary data to CyberSource. For this, it's necessary to send the following fields:

FieldDescription
anti_fraudObject with anti-fraud data.
chargebackInforms whether the notification to Cybersource will be made or not.
Allowed values: true ou false
Default value: false
marked_dataInforms which fields will be relevant to notify to Cybersource that this transaction was a fraud attempt.

This fields receives an array of values. For example: "marked_data":["ship_address","customer_phone","customer_email"].

Fields that can be informed:
  • account_key_hash
  • customer_account_id
  • customer_email
  • customer_idaddress
  • customer_phone
  • device_fingerprint
  • ship_address
If no content is sent, the default values assumed by Cybersource will be account_key_hash, customer_email and ship_address.

Example:

curl
--request PUT "https://esitef-homologacao.softwareexpress.com.br/e-sitef/api/v1/cancellations/1234567890abcdefghijklmnopqrstuvwxyz1234567890abcdefghijklmnopqr"
--header "Content-Type: application/json"
--header "merchant_id: xxxxxxxxxxx"
--header "merchant_key: xxxxxxxxxxx"
--data-binary
{
   "card":{
      "security_code":"123",
      "number":"5555555555555555",
      "expiry_date":"1222"
   },
   "amount":"1000",
   "anti_fraud":{
      "chargeback":"true",
      "marked_data":[
         "account_key_hash",
         "customer_account_id",
         "customer_email"
      ]
   }
}
--verbose

Anti-fraud parameter for CyberSource

Below is the list of anti-fraud parameters processed by CyberSource. Some parameters have different treatments depending on the institution and the "Additional detail" column that specifies CyberSource's treatment. For details of each parameter, see the anti-fraud parameters list.

Property
e-SiTef
Property
CyberSource
Additional detail
currencyPurchaseTotals_currency-
itemsObject json Array (Learn more)
shipmentObject json Array (Learn more)
browserObject json (Learn more)
travelObject json (Learn more). Required, if the item is an air ticket
passengersObject json Array (Learn more)
connectionsObject json Array (Learn more)
mddObject json Array (Learn more). The allowed values can be found here.

Object items

Property
e-SiTef
Property
CyberSource
Additional detail
idItem_#_ID-
skuItem_#_ productSKURequired
titleItem_#_ productName-
quantityItem_#_Quantity-
unit_priceItem_#_unitPrice-
category_idItem_#_productCodeAllowed values:
  • adult_content
  • default
  • electronic_good
  • electronic_software
  • gift_certificate
  • handling_only
  • service
  • shipping_and_handling
  • shipping_only
  • stored_value
  • subscription
. Required.

When the used value is not default, the fields item_#_quantity, item_#_productName e item_#_productSKU are mandatory!
tax_amountItem_#_taxAmount-

Object shipment

Property
e-SiTef
Property
CyberSource
Additional detail
nameshipTo_firstName-
surnameshipTo_lastName-
addressObject json (Learn more)
phonesArrays de object json (Learn more)

Object address of shipment

Property
e-SiTef
Property
CyberSource
Additional detail
street_nameshipto_street1Must send the street number and the complement. Use the keywords AP (apartment), APTO (apartment), LOTE (lot), CASA (house) or BLOCO (block).
street_name2shipto_street2Must send the street number and the complement. Use the keywords AP (apartment), APTO (apartment), LOTE (lot), CASA (house) or BLOCO (block).
street_numbershipto_street1-
apartmentWill be appended to the shipto_street2-
complementWill be appended to the shipto_street2-
cityshipto_city-
stateshipto_state-
countryshipto_countryMust use the ISO pattern
zip_codeshipto_postalCode-
building_numbershipto_building_number-

Object phones of shipment

Property
e-SiTef
Property
CyberSource
Additional detail
ddishipTo_phoneNumber-
dddshipTo_phoneNumber-
numbershipTo_phoneNumber-

Object browser

Property
e-SiTef
Property
CyberSource
Additional detail
ip_addressbillTo_ipAddressIf this field is not sent, the client's IP will be sent

Object travel

Property
e-SiTef
Property
CyberSource
Additional detail
routedecisionManager_travelData_completeRoute-
journey_typedecisionManager_travelData_journeyType-
departure_date_timedecisionManager_travelData_journeyType-

Object passengers

Property
e-SiTef
Property
CyberSource
Additional detail
iditem_#_passengerId-
nameitem_#_passengerFirstNameFill with passenger's first name
last_nameitem_#_passengerLastNameRequired
frequente_flyer_carditem_#_passengerIDThe field billTocustomerID can hold the same information
emailitem_#_passengerEmailMust be unique, otherwise, the transaction will be refused by CyberSource with reason code 102.
statusitem_#_passengerStatus-
typeitem_#_passengerType-
unit_priceitem_#_unitPrice-
phonesObject json Array (Learn more)

Object phones of passengers

Property
e-SiTef
Property
CyberSource
Additional detail
ddiitem_#_passengerPhone-
ddditem_#_passengerPhone-
numberitem_#_passengerPhone-

Object connections

Property
e-SiTef
Property
CyberSource
Additional detail
flight_datedecisionManager_travelData_departureDateTimethe following formats are allowed:
  • yyyy-MM-dd HH:mm z
  • yyyy-MM-dd hh:mm a z
  • yyyy-MM-dd hh:mma z
Consider:
  • HH = time in 24 hours format
  • hh = time in 12 hours format
  • a = am or pm (case insensitive)
  • z = timezone of departure flight (if is the offset according to GMT, use the format: GMT-03:00)
fromdecisionManager_travelData_leg_#_originUse this reference in order to get the airports codes.
todecisionManager_travelData_leg_#_destinationUse this reference in order to get the airports codes. It's possible to consider the complete route with the field decisionManager_travelData_completeRoute. If all those fields are sent, the completeRoute field will be used.
departure_datedecisionManager_travelData_departureDateTime-

Object mdd

Property
e-SiTef
Property
CyberSource
Additional detail
idmerchantDefinedData_mddField_idIt can range from 1 to 100 defined by the merchant in an agreement with Cybersource.
valuemerchantDefinedData_mddField_valueValue of the field defined by the merchant in an agreement with Cybersource.

mdd values

The MDDs are additional data that help with the accuracy of Cybersource's anti-fraud analysis and sending them is highly recommended. There are three MDD ID ranges:

  • Between 1 to 4, refers to MDD that will be filled out by e-SiTef itself.
  • Between 5 and 20, refers to MDD that are independent of store activity.
  • Between 21 and 1000, refers to MDD that are dependent of the store's activity and the filling must follow the guidelines of Cybersource. The allowed values ​​of id and the description of the value content are:
IDResumeDescription
5Sales channelSales channel of the product/service: Web, App, Ticket Office, etc.)
6OSOperational System used by the customer: Android, iOS, Windows, etc.
7Application VersionMerchant's Application Version : 1.0.12
8Provisioned for future dataProvisioned for future data.
9Provisioned for future dataProvisioned for future data.
10Provisioned for future dataProvisioned for future data.
11Name used in registrationNome registrado no cadastro (Obs: em caso de compra guest`* não enviar valor por gentileza)
12CPF used in registrationCPF registrado no cadastro.
13Client register age in daysTempo de cadastro do cliente em dias. Formato: NNNNN
14Days since first orderQuantidade de dias passados desde o primeiro pedido. Formato: NNNNN
15Days since last orderQuantidade de dias passados desde o último pedido. Formato: NNNNN
16Total orders quantityQuantidade total de pedidos realizados pelo CPF cadastrado. Formato: NNNNN
17Days since last registration changeQuantidade de dias passados desde a última alteração cadastral. Formato: NNNNN
18Provisioned for future dataProvisioned for future data.
19Provisioned for future dataProvisioned for future data.
20Provisioned for future dataProvisioned for future data.

Example

Example of HTML payment request with risk analysis on CyberSource

{
   "merchant_id":"CYBERSRCPERMI2",
   "merchant_usn":"803208495",
   "order_id":"866705726000010",
   "redirect":"A",
   "style":"N",
   "amount":"100000",
   "authenticate":"0",
   "transaction_type":"payment",
   "additional_data":{
      "currency":"BRL",
      "items":[
         {
            "title":"bola 1",
            "quantity":"1",
            "unit_price":"50000",
            "category_id":"default",
            "description":"bola para jogar 1",
            "weight":"200",
            "shipping_cost":"1000",
            "id":"1",
            "sku":"1234"
         },
         {
            "title":"bola 2",
            "quantity":"2",
            "unit_price":"25000",
            "category_id":"default",
            "description":"bola para jogar 2",
            "weight":"200",
            "shipping_cost":"1000",
            "id":"2",
            "sku":"123"
         }
      ],
      "payer":{
         "name":"Joaquim",
         "surname":"Severino",
         "email":"allison@confiavel.com",
         "city":"Rio de janeiro",
         "state":"RJ",
         "date_created":"2014-03-12T06:55:17.413-04:00",
         "born_date":"12/12/1900",
         "id":"68408639307",
         "address":{
            "zip_code":"55555000",
            "street_number":"123",
            "street_name":"Rua Jaragua",
            "floor":"123",
            "apartment":"123",
            "complement":"Loja 123",
            "district":"Darada",
            "city":"rio de janeiro",
            "state":"SP",
            "country":"br",
            "county":"Jardim Tottoro",
            "reference":"Esquina das alamedas"
         },
         "phones":[
            {
               "number":"998844551",
               "ddd":"11",
               "ddi":"55"
            }
         ],
         "documents":[
            {
               "type":"cpf",
               "number":"68408639307"
            }
         ]
      },
      "shipment":{
         "type":"1",
         "cost":"2000",
         "name":"Joaquim",
         "surname":"Silva",
         "address":{
            "zip_code":"12345678",
            "street_number":"123",
            "street_name":"Rua do Exemplo",
            "building_number":"55",
            "floor":"3",
            "complement":"CASA",
            "district":"Jardim do Exemplo",
            "city":"São Paulo",
            "state":"SP",
            "country":"br",
            "county":"jardins"
         },
         "phones":[
            {
               "number":"123123123",
               "ddd":"11",
               "ddi":"34"
            }
         ],
         "anti_fraud":"enabled_after_auth",
         "passengers":[
            {
               "id":"3354688841",
               "name":"Joaquim",
               "last_name":"Severino",
               "email":"allison@confiavel.com",
               "customer_class":"standard",
               "unit_price":"100000",
               "type":"ADT",
               "phone":{
                  "number":"998844551",
                  "ddd":"11",
                  "ddi":"55"
               }
            }
         ],
         "billing_data":{
            "client_id":"68408639307",
            "person":"1",
            "gender":"M",
            "name":"Joaquim Severino",
            "birth_date":"1990-02-19T10:00:00",
            "email":"allison@confiavel.com",
            "address":{
               "zip_code":"02932900",
               "street_number":"123",
               "street_name":"rua legal",
               "floor":"1",
               "apartment":"1200",
               "complement":"lala",
               "city":"rio de janeiro",
               "state":"RJ",
               "country":"Brazil",
               "county":"jardim lala",
               "reference":"shopping",
               "phones":[
                  {
                     "number":"123123123",
                     "ddd":"11",
                     "ddi":"34"
                  }
               ]
            },
            "phones":[
               {
                  "number":"123123123",
                  "ddd":"11",
                  "ddi":"34"
               }
            ]
         },
         "browser":{
            "ip_address":"187.75.228.107"
         },
         "mdd":[
            {
               "id":"1",
               "value":"MDD_TESTE_1"
            },
            {
               "id":"2",
               "value":"MDD_TESTE_2"
            }
         ],
         "travel":{
            "route":"GIG-SFO:SFO-LAX",
            "departure_date_time":"2019-12-19T09:00:00",
            "journey_type":"Round_Trip"
         }
      }
   }
}

Response Codes

As explained in the chapter "Risk analysis response", the codes below are CyberSource's specific responses.

CodeDescription
100Transaction performed successfully and approved by the Decision Manager.
101One or more of the required fields are missing in the request.
102One or more of the required fields contains invalid data.
150Error: General System Failure
151Error: The request was received but timeout occurred. This error does not include timeout between client and server.
152Error: The request was received, but a service did not finish in a timely manner.
202Expired card
← ClearSaleKonduto →
  • Required credentials
  • Allowed card brands
  • Refund notification due to fraud
  • Anti-fraud parameter for CyberSource
    • Object items
    • Object shipment
    • Object browser
    • Object travel
    • Object passengers
    • Object connections
    • Object mdd
    • mdd values
  • Example
    • Response Codes
e-SiTef
Relacionamento com o cliente
+55 (11) 3170-5300+55 (11) 4766-8000comercial@softwareexpress.com.br
Acessos
Portal do DesenvolvedorPortal e-SiTefVersão para impressão
Copyright © 2021 Software Express Informática Ltda - Todos os direitos reservados