e-SiTef

e-SiTef

  • Portal do Desenvolvedor
  • Fale Conosco
  • English

›HTML Payment

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

Pages Customization

Overview

Attention: as the customizations involve CSS and JavaScript files, depending on the customization level it's recommended that, besides a designer/UX specialist (user experience), a front-end developer should also be involved or someone with similar JavaScript knowledge. Both will work together to create the required artifacts for customization.

Important: every content used for customization (be them images, JS scripts, CSS files, etc) are of unique and exclusive responsibility of the client performing the customization. Software Express is not responsible for any irregularities in these contents, it's up to the client performing the customization to assure that these contents are being used in accordance with their respective licenses, if there are any.

Currently it's possible to customize the pages in two ways: using a CSS file or a JS code file. It's also possible to use both methods together.

The personalization via style sheets is done by the customV2.css file (generic name given to the style sheet), following some patterns that override the current style.css (default Software Express style sheet).

Although style.css is the main CSS file of the HTML payment interface, there are other CSS files that can be referenced. These files are mentioned in the next section.

The personalization via JavaScript is done by the main.js and end.js files (generic names), that will be inserted in the pages.

The customV2.css style sheet and the main.js and end.js source codes are unique for each client and the "installation" is applied by Software Express.

When the virtual store (assuming as an example e-SiTef's homologation environment) redirects the customer to the page https://esitef-homologacao.softwareexpress.com.br/e-sitef-hml/do.se?input['nit']=XX, e-SiTef loads the .css and .js files as registered for the merchant in a directory, for example:

https://esitef-homologacao.softwareexpress.com.br/custom/xxx/

Where xxx is the directory configured on e-SiTef's back-office (the merchant id on e-SiTef is used), that has the following structure:

/custom/xxx/css/customV2.css
/custom/xxx/images
/custom/xxx/js/main.js
/custom/xxx/js/end.js

Therefore, the path to the images for the merchant is https://esitef-homologacao.softwareexpress.com.br/custom/xxx/images, and the images must point to something like background-image:url('/custom/xxx/images/botao.gif') in the customV2.css file.

The customV2.css file can override the properties contained in style.css, but won't replace the style.css file. Thus, the page will also point to a new /custom/xxx/css/customV2.css file, as in the HTML snippet below:

<link rel="stylesheet" href="/css/v2/style.css">
<link rel="stylesheet" href="/css/v2/payment.css">
<link rel="stylesheet" href="/css/v2/error.css">
<link rel="stylesheet" href="/custom/xxx/css/customV2.css" />

The main.js file is inserted in the pages right before the </body> closing tag, as in the example below:

<script type="text/javascript" src="/custom/xxx/js/main.js"> </script>

Then, it will be executed after loading the page elements and will have reference to all of them.

The end.js file is inserted only in the last page, being useful to execute some code in the store return redirecting. The insertion is done as follows:

<script type="text/javascript" src="/custom/xxx/js/end.js"> </script>

It's worth noting that not every style is customizable, only the colors, background images and buttons.

Eventual images can also be sent, but are subject to our approval concerning the size (bytes) and the format.

It's not allowed to remove e-SiTef's logo, both superior (header) and inferior (footer, if any). The merchant will be able to put their logo in another position of the page, provided that it doesn't remove or override the e-SiTef's logos.

The client can take as an example the css on:

https://esitef-homologacao.softwareexpress.com.br/custom/exemplo/css/customV2.css

Attention: Never use the IP instead of the esitef-homologacao.softwareexpress.com.br (Homologation) and esitef-ec.softwareexpress.com.br (Production) domains. The IP can change at any moment and without previous warning, therefore, it's important to use the domain for accessing e-SiTef.

Procedures for sending the customization files

The customization files, be them customV2.css and the images, and/or the main.js and end.js files, must be delivered to Software Express formatted as follows: xxx.zip, where: xxx is the merchant id on e-SiTef, respecting the following structure:

xxx/
    |- css/customV2.css
    |- images/ 
    |- js/main.js
    |- js/end.js

The CSS files of reference for the HTML interface are available on the homologation environment on:

  • https://esitef-homologacao.softwareexpress.com.br/css/v2/authentication.css
  • https://esitef-homologacao.softwareexpress.com.br/css/v2/bootstrap.min.css
  • https://esitef-homologacao.softwareexpress.com.br/css/v2/error.css
  • https://esitef-homologacao.softwareexpress.com.br/css/v2/fonts.css
  • https://esitef-homologacao.softwareexpress.com.br/css/v2/payment-credit.css
  • https://esitef-homologacao.softwareexpress.com.br/css/v2/payment.css
  • https://esitef-homologacao.softwareexpress.com.br/css/v2/recharge.css
  • https://esitef-homologacao.softwareexpress.com.br/css/v2/style.css
  • https://esitef-homologacao.softwareexpress.com.br/css/v2/success.css

Send only the files related to the personalization that will be used! If only the style personalization is desired, send only the customV2.css and the image files.

The image files must be preferably in the JPG and PNG format. The final layout will always be subject to approval by Software Express.

If the establishment has more than one merchantId

For companies that have more than one merchantId (store identification on e-SiTef) and wish to use the same customization, please contact our support.

Customizing the logo

It's also possible to insert a personalized logo of the store on the payment screen. If the logo is inserted, it will appear at the top of the page, to the left from e-SiTef's logo. Below is an example illustration:

If the logo isn't inserted, only e-SiTef's logo will appear at the top right and the rest of the top will be of only one color. Below is an example illustration:

So that the customized logo is shown, the client must create a figure with a resolution of 320 x 160 pixels, in PNG format, with transparent background. The image must be passed to the Production and Support teams of e-SiTef.

Then, the option of displaying the personalized logo must be enabled on the merchant's registration by the Production and Support teams of e-SiTef.

Customization examples

To practice the presented concepts, a customization example will be shown next.

The figure below displays the default payment page, without any customizations:

Four elements of the page will be customized:

  1. Background color of the payment breadcrumb bar, at the of the page (CSS): from dark green to blue.
  2. Background color of the "RESUMO DA COMPRA" frame (CSS): from green to blue.
  3. Font of the labels "Número do Cartão", "Data de Validade [?]", "Código de segurança [?]" and "Como deseja pagar?" (CSS): from Source Sans Pro to Courier New.
  4. Icon "$" beside the "Escolha a forma de pagamento" label (JavaScript): replacement of the icon for another.

The first step of the customization is building the directory structure mentioned previously. Assuming that the merchant of this example has the ecommerce code, we must have the following structure:

ecommerce
   css
       customV2.css
   images
       cifrao.png
   js
       main.js

Initially, tje customV2.css and main.js files must be empty. The cifrao.png file can be seen in the figure below:

The customV2.css file will contain the customizations of the items 1, 2 and 3. The cifrao.png and main.js files will be used on the customization of the item 4.

To customize the item 1, add the following content to the customV2.css file:

.steps {
    background: #0000ff;
}

There, we alter the elements background color with the steps style (item 1) to the blue color (code 0000ff).

To customize the item 2, add the following content to the customV2.css file:

.summary {
    background-color: #0000ff;
}

There, we alter the elements background color with the summary style (item 2) to the blue color (code 0000ff).

To customize the item 3, add the following content to the customV2.css file:

.form-control {
    font-family: "Courier New";
}

There, we alter the elements font with the form-control style (item 3) to Courier New.

All of these customizations obey the CSS (Cascading Style Sheets) language conventions. The complete customV2.css file can be seen below:

.steps {
    background: #0000ff;
}

.summary {
    background-color: #0000ff;
}

.form-control {
    font-family: "Courier New";
}

The customization of the item 4, as opposed to the other three items, can't be performed via CSS, making it necessary to use the JavaScript language.

To customize the item 4, add the following content to the main.js file:

$("div.pagament-content > div.payment-title img.img-responsive").attr("src", "/custom/ecommerce/images/cifrao.png");

There, we alter the image of the elements that meet the criteria above (item 4) to the image contained in the cifrao.png file.

It's important to mention that the JavaScript code above is using the jQuery framework (https://jquery.com), but any valid JavaScript source code can be used.

With the customization complete, the directory structure must be compressed in a file called ecommerce.zip and send to Software Express, as in the instructions mentioned previously. After Software Express validates the customization, if no problem is detected it will be available for visualization.

The figure below shows the payment page after the customization:

← Payment with card storagePayment link →
  • Overview
  • Procedures for sending the customization files
  • If the establishment has more than one merchantId
  • Customizing the logo
  • Customization examples
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