e-SiTef

e-SiTef

  • Portal do Desenvolvedor
  • Fale Conosco
  • English

›Non SiTef Routings

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

PayPal

This document goal is show the required configurations and guidelines to make possible merchant integration with PayPal by e-SiTef HTML Interface, and e-SiTef Merchant's Portal and Web Services for Refunding.

e-SiTef supported interfaces for integration

The following interfaces are available for Integrations using PayPal:

  • HTML Payment Interface 2.0
  • Refund Web Service
  • Refunding by e-SiTef Merchant's Portal

PayPal authorizer id code in e-SiTef

The authorization code for using PayPal is 400. For more authorizer codes, visit the Authorizers page.

Required Configurations

Before start making transactions using PayPal in e-SiTef, merchants must follow the steps below.

Merchant's account data at PayPal

The store must create a PayPal account if you no longer have it. More information at www.paypal.com.br. Follow the instructions at Create PayPal Account. Within your account, create the required credentials.

PayPal allows from the registered Business account to create virtual accounts for the sandbox - PayPal's testing environment. For the e-SiTef homologation process, it is suggested that an account be created in the sandbox. Look for the option on the website within your PayPal account.

The Table below show then required PayPal credentials:

Field name in e-SiTefField descriptionMandatory
USERUser name on PayPal account.YES
PWDUSER's password.YES
SIGNATUREUSER's signature.YES

Note: Sandbox account data can be used in e-SiTef test and Certification environment, but in e-SiTef Production environment, merchant must use real PayPal account data.

Register PayPal account data in e-SiTef

Merchant must contact e-SiTef Support Team to register PayPal account data at e-SiTef, and the additional steps below is required:

  • PayPal authorizer activation in merchant account in e-SiTef;
  • Username and password to access e-SiTef Merchant's Portal.

For more information, go to the Authorizer Configuration in the Merchant's Portal page.

Header Image and customized logo in PayPal page

Merchants can choose on using customized logo and/or header image in PayPal payment page. Logo size must be 190 pixels x 60 pixels and header image size must be 915 pixel x 85 pixels.

Merchant logo and header image must be submitted to PayPal support team to validation and combination with e-SiTef logo.

Payment Flow with PayPal

e-SiTef uses PayPal's Express Checkout API to payment integration.

The common payment flow using e-SiTef to integrate with PayPal API is described in steps below:

  1. The user starts payment in e-SiTef;
  2. Configured authorizers for mechant are presented to the user;
  3. The user choose PayPal;
  4. At this moment a new window opens, redirecting the user to PayPal page;
  5. The user starts payment process in PayPal page, where authentication and authorization occours;
  6. The user ends payment in PayPal environment;
  7. PayPal redirects user back to e-SiTef;
  8. After receiving redirected user, e-SiTef makes a query on PayPal and updates the transaction status on e-SiTef;
  9. If the merchant configured automatic redirecting in e-SiTef, the user is automatic redirected to registered Success URL or Failure URL.

The input/output diagram below shows a PayPal payment flow via e-SiTef:

Fluxo PayPal

There is only one case where this flow is different, when transaction begin is made with pre-fixed PayPal authorizer. In this case, steps 2 and 3 is not necessary.

Status Notification

For each transaction status change in e-SiTef resulting from communication between e-SiTef and PayPal, a Status Notification is sent to the merchant's server. For more details, see the Status Notification page.

Transaction required parameters for PayPal payments in e-SiTef

The parameters used to create a payment transaction with PayPal are the same as those presented in the HTML Payment Transaction Creation document.

In addition to the common parameters, it is possible to send in the request the specific fields for Paypal described below:

ParameterDescriptionSizeMandatory
additional_dataADDITIONALDATA object.NO

ADDITIONALDATA (additional_data)

ParameterDescriptionSizeMandatory
extra_infoAdditional info about payment.< 127 ANNO
item_amountOrder items amount summary, in cents. This summary must match unit_price field value multiplied by quantity field value, for all items. Maximum value allowed is US$10000, in any currency.< 1024 NNO
purchase_summaryCustomizeable text to "Purchase Summary" field in e-SiTef payment screen.< 1024 ANNO
insurance_amountOrder items insurance amount, in cents. Maximum value allowed is US$10000, in any currency.< 1024 NNO
handling_amountSale handling amount, in cents. Maximum value allowed is US$10000, in any currency.< 1024 NNO
tax_amountOrder total tax amoutn summary, in cents. Maximum value allowed is US$10000, in any currency.< 1024 NNO
itemsITEMS object array.NO
payerPAYER object.NO
shipmentSHIPMENT object.NO
extra_paramEXTRAPARAM object.NO

ITEMS (items)

ParameterDescriptionSizeMandatory
idItem identification code.< 127 ANNO
titleItem title.< 127 ANNO
urlItem URL.< 1024 ANNO
quantityItem quantity.< 10 NNO
unit_priceItem unit price, in cents. Maximum value allowed is US$10000, in any currency.< 1024 NNO
weightItem unit weight, in grams (g).

Ex: 2,3 kg -> 2300.
< 10 NNO
descriptionItem description.< 127 ANNO
tax_amountItem unit tax amount, in cents. Maximum value allowed is US$10000, in any currency.< 1024 NNO
lengthItem length, in centimeters (cm).< 10 NNO
widthItem width, in centimeters (cm).< 10 NNO
heightItem height, in centimeters (cm).< 10 NNO
typeItem type:

Digital – The item is a digital product. Ex: e-books, songs, etc.
Physical – The item is a physical product.
< 10 NNO

PAYER (payer)

ParameterDescriptionSizeRequired
emailCustomer / Payer e-mail address.< 127 ANNO
identification_typeCustomer / Payer identification type. For Brazil:

BR_CPF - Buyer's CPF
BR_CNPJ - Buyer's CNPJ.
< 10 AYES (FOR BRAZIL)
identification_numberCustomer / payer identification number.< 14 ANYES (FOR BRAZIL)

SHIPMENT (shipment)

ParameterDescriptionSizeMandatory
costOrder total shipment cost.

Format: cents. Maximum value allowed is US$10000, in any currency.
Ex: 123456 (R$ 1234,56)
< 1024 NNO
discount_amountShipment cost discount amount, in cents. Maximum value allowed is US$10000, in any currency.< 1024 NNO
receiver_addressRECEIVERADDRESS object.NO

RECEIVERADDRESS (receiver_address)

ParameterDescriptionSizeRequired
zip_codeReceiver address zip code (or CEP for Brazil).< 20 ANSIM (*)
street_nameReceiver address street name. Maximum size allowed, combined with street_number field, is 100 characters.< 100 ANSIM (*)
street_numberReceiver address number. Maximum size allowed, combined with street_address field, is 100 characters.< 100 ANSIM (*)
complementReceiver address complement (block, apartment, etc.).< 100 ANSIM (*)
cityReceiver address city.< 40 ANSIM (*)
stateReceiver address state. Example in Brazil: SC (Santa Catarina), SP (São Paulo), etc.< 2 ANSIM (*)
countryReceiver address country code, using ISO 3166-1 alpha-3 (3 letters).

Ex: Brazil: BRA
< 2 ASIM (*)
nameReceiver reference name.< 32 ANSIM (*)
phone_area_codeReceiver address phone area code. Maximum size allowed, combined with phone_number field, is 20 characters.< 20 ANSIM (*)
phone_numberReceiver address phone number. Maximum size allowed, combined with phone_area_code field, is 20 characters.< 20 ANSIM (*)

EXTRAPARAM (extra_param)

ParameterDescriptionSizeMandatory
acquirer_paramsACQUIRERPARAMS object.NO

ACQUIRERPARAMS (acquirer_params) (**)

ParameterDescriptionSizeMandatory
keyParameter key to send to acquirer/authorizer.< 1024 ANNO
valueParameter value to send to acquirer / authorizer.< 1024 ANNO

(*) This field is not required if the product item is a digital product (see item object, type field), so there is no product delivery. Ex: e-books, digital songs, etc.

NOTE: The field that defines whether the item is digital or not is the type field of the item object.

(**) acquirer_params: This field groups key + value format parameters, to specific acquirer parameters. In PayPal case, the following parameters can be sent here:

KeyValue
reqConfirmShippingIndicates whether or not merchant with PayPal be a confirmed address. For digital products, this field is required, and merchant must set it to 0 (zero). It is one of the following values:

0 - Merchant do not require the buyer's shipping address be a confirmed address;
1 - Merchant require the buyer's shipping address be a confirmed address;

For digital or virtual products (eg electronic books and digital music - products that are delivered via the web), the parameter is required and must be set to 0 (zero).
noShippingDetermines where or not PayPal displays shipping address fields on the PayPal pages. For digital goods, this field is required, and merchant must set it to 1. It is one of the following values:

0 - PayPal displays the shipping address on the PayPal pages;
1 - PayPal does not display shipping address fields whatsoever;
2 - If merchant do not pass the shipping address, PayPal obtains it from the buyer's account profile.
allowNoteEnables the buyer to enter a note to the merchant on the PayPal page during checkout. It is one of the following values:

0 - The buyer is unable to enter a note to the merchant;
1 - The buyer is able to enter a note to the merchant.
addrOverrideDetermines whether or not the PayPal pages should display the shipping address set by merchant in request, not the shipping address on file with PayPal for this buyer. Displaying the PayPal street address on file does not allow the buyer to edit that address. It is one of the following values:

0 - The PayPal pages should not display the shipping address;
1 - The PayPal pages should display the shipping address.
localeCodeLocale of pages displayed by PayPal during Express Checkout. It is one of the following values supported by PayPal:
AU - Australia
AT - Austria
BE - Belgium
BR - Brazil
CA - Canada
CH - Switzerland
CN - China
DE - Germany
ES - Spain
GB - United Kingdom
FR - France
IT - Italy
NL - Netherlands
PL - Poland
PT - Portugal
RU - Russia
US - United States

For country-specific languages:

da_DK - Danish (only for Denmark)
he_IL - Hebrew (all the locations)
id_ID - Indonesian (Indonesia only)
jp_JP - Japanese (Japan only)
no_NO - Norwegian (Norway only)
pt_BR - Brazilian Portuguese (only for Portugal and Brazil)
ru_RU - Russian (for Lithuania, Latvia, and Ukraine)
sv_SE - Swedish (only for Sweden) < br /> th_TH - Thai (Thailand only)
tr_TR - Turkish (Turkey Only)
zh_CN - Simplified Chinese (C only) hina)
zh_HK - Traditional Chinese (Hong Kong Only)
zh_TW - Traditional Chinese (Taiwan Only)

NOTE: If the locale code is not supplied or the supplied value is not one of the above-listed values, it is defaulted by PayPal. The default is determined using information about the current merchant, user, and other information for the session.
pageStyleName of the Custom Payment Page Style for payment pages associated with this button or link. It corresponds to the HTML variable page_style for customizing payment pages. Max 30 alphabetic characters.
hdrBorderColorSets the border color around the header of the payment page. The border is a 2-pixel perimeter around the header space, which is 750 pixels wide by 90 pixels high. By default, the color is black. Max 6-character HTML hexadecimal ASCII color code.
hdrBackColorSets the background color for the header of the payment page. By default, the color is white. Max 6-character HTML hexadecimal ASCII color code.
payFlowColorSets the background color for the payment page. By default, the color is white. Max 6-character HTML hexadecimal ASCII color code.
cartBorderColorThe HTML hex code for merchant's principal identifying color. PayPal blends merchant's color to white in a gradient fill that borders the cart review area of the PayPal checkout user interface. Max 6-character HTML hexadecimal ASCII color code.
landingPageType of PayPal page to display. It is one of the following values:

Billing - Non-PayPal account;
Login - PayPal account login.

Default value is Login.
buyerEmailOptinenableEnables the buyer to provide their email address on the PayPal pages to be notified of promotions or special events. Is one of the following values:
0 - Do not enable buyer to provide email address;
1 - Enable the buyer to provide email address.
paymentRequest_0_paymentReasonIndicates the type of transaction. It is one of the following values:

None - Transaction is not identified as a particular type;
Refund - Identifies the transaction as a refund.
paymentRequest_0_insuranceOptionOfferedIndicates whether insurance is available as an option the buyer can choose on the PayPal Review page. Merchant can specify up to 10 payments, where n is a digit between 0 and 9 , inclusive. Is one of the following values:

true - With option.
false - Without option.
paymentRequest_0_customA free-form field for merchant use. Merchant can specify up to 10 payments, where n is a digit between 0 and 9, inclusive. Max 256 alphanumeric characters
paymentRequest_0_noteTextNote to the merchant. Merchant can specify up to 10 payments, where n is a digit between 0 and 9 , inclusive. Max 255 characteres.

Important: Despite of PayPal support for multiple item groups, e-SiTef supports only one item group in a single payment.

JSON request examples to begin PayPal transaction in e-SiTef

Below are shown request examples to begin a PayPal transaction in e-SiTef.

Minimum request example:

Minimum request JSON object:

{
    "merchant_id":"CODIGOLOJA",
    "amount":"1000",
    "authorizer_id":"400",
    "additional_data":{
        "currency":"BRL",
        "payer":{
            "identification_type":"BR_CPF",
            "identification_number":"12345678901"
        }
    }
}

Complete request example:

{
    "merchant_id":"CODIGOLOJA",
    "merchant_usn":"1234567890",
    "order_id":"pedido45687",
    "authorizer_id":"400",
    "amount":"1000",
    "redirect":"M",
    "style":"P",
    "soft_descriptor":"MINHALOJA",
    "additional_data":{
        "item_amount":"1000",
        "tax_amount":"0",
        "insurance_amount":"0",
        "handling_amount":"0",
        "extra_info":"descricao",
        "currency":"BRL",
        "items":[
            {
                "id":"1",
                "title":"bola 1",
                "quantity":"1",
                "unit_price":"500",
                "currency":"BRL",
                "url":"http://sportv.globo.com/platb/files/1103/2011/08/bola_futebol.gif",
                "type":"Physical",
                "description":"bola para jogar 1",
                "weight": "100",
                "length": "20",
                "width": "20",
                "height": "20",
                "tax_amount": "0"
            },
            {
                "id":"2",
                "title":"bola 2",
                "quantity":"2",
                "unit_price":"250",
                "currency":"BRL",
                "url":"http://sportv.globo.com/platb/files/1103/2011/08/bola_futebol.gif",
                "type":"Physical",
                "description":"bola para jogar 2",
                "weight": "200",
                "length": "20",
                "width": "20",
                "height": "20",
                "tax_amount": "0"
            }
        ],
        "payer":{
            "email":"js@softexpress.com.br",
            "identification_type":"CPF",
            "identification_number":"09719224703"
        },
        "shipment":{
            "cost": "0",
            "discount_amount": "0",
            "receiver_address":{
                "zip_code": "12345678",
                "street_number": "Rua do Exemplo",
                "street_name": "123",
                "name": "Rafael do Mel",
                "phone_area_code": "11",
                "phone_number": "912341234",
                "city": "São Paulo",
                "complement": "Sobreloja 3",
                "country": "BRA",
                "state": "SP"
            }
        },
        "extra_param": {
            "acquirer_params": [
                {
                    "key": "reqConfirmShipping",
                    "value": "0"
                },
                {
                    "key": "noShipping",
                    "value": "1"
                },
                {
                    "key": "allowNote",
                    "value": "1"
                },
                {
                    "key": "addrOverride",
                    "value": "1"
                },
                {
                    "key": "localeCode",
                    "value": "pt_BR"
                },
                {
                    "key": "pageStyle",
                    "value": ""
                },
                {
                    "key": "hdrBorderColor",
                    "value": ""
                },
                {
                    "key": "hdrBackColor",
                    "value": ""
                },
                {
                    "key": "payFlowColor",
                    "value": ""
                },
                {
                    "key": "cartBorderColor",
                    "value": ""
                },
                {
                    "key": "landingPage",
                    "value": ""
                },
                {
                    "key": "buyerEmailOptinenable",
                    "value": "0"
                },
                {
                    "key": "paymentRequest_0_paymentReason",
                    "value": "none"
                },
                {
                    "key": "paymentRequest_0_insuranceOptionOffered",
                    "value": "false"
                },
                {
                    "key": "paymentRequest_0_custom",
                    "value": ""
                },
                {
                    "key": "paymentRequest_0_noteText",
                    "value": "Obrigado por comprar na Loja Teste!"
                }
            ]
        }
    }
}

PayPal transactions cancelling

The PayPal transaction cancelling or refunding are available in e-SiTef at two interfaces:

  • REST Cancel WebService and;
  • Merchant's Portal.

Refund using Merchant's Portal

When cancelling a PayPal transaction via Merchant's Portal the following screen will be displayed during the process:

Cancelamento via Portal

The following table shows the description of the form fields:

ParameterDescriptionMandatory
ValorRefund amount.YES
Tipo de ReembolsoType of refund the merchant is making.

Allowed values:
Total - Full refund.
Parcial - Partial refund.
YES
Fonte do ReembolsoType of PayPal funding source (balance or eCheck) that can be used for auto refund

Allowed values:
Qualquer disponível - The merchant does not have a preference. Use any available funding source.
Padrão - Use the merchant's preferred funding source, as configured in the merchant's profile.
Imediato - Use the merchant's balance as the funding source.
eCheck - The merchant prefers using the eCheck funding source. If the merchant's PayPal balance can vocer the refund amount, use the PayPal balance.
YES
Tentar novamente atéFormat: YYYY-MM-DDTHH:MM:SS.

Maximum time until merchant must retry the refund.
NO
Invoice IDMerchant invoice or tracking number.NO
Message IDA message ID used for idempotence to uniquely identify a message. This ID can later be used to request the latest results for a previous request without generating a new request. Examples of this include requests due to timeouts or errors during the original request.NO
Store IDIdentifier of the merchant store at which the refund is given. This field is required for point-of-sale transactions.NO
Terminal IDID of the terminal, in point-of-sale transactions.NO
Refund AdviceFlag to indicate that the buyer was already given store credit for a given transaction.

Allowed values:
Verdadeiro - The buyer was already given store credit for a given transaction.
Falso - The buyer was not given store credit for a given transaction.
NO
AnotaçõesCustom memo about the refund.NO
Detalhes da lojaInformation about the merchant store.NO
← PagSeguroSafraPay →
  • e-SiTef supported interfaces for integration
  • PayPal authorizer id code in e-SiTef
  • Required Configurations
    • Merchant's account data at PayPal
    • Register PayPal account data in e-SiTef
    • Header Image and customized logo in PayPal page
  • Payment Flow with PayPal
    • Status Notification
  • Transaction required parameters for PayPal payments in e-SiTef
    • ADDITIONALDATA (additional_data)
    • ITEMS (items)
    • PAYER (payer)
    • SHIPMENT (shipment)
    • RECEIVERADDRESS (receiver_address)
    • EXTRAPARAM (extra_param)
    • ACQUIRERPARAMS (acquirer_params) (**)
    • JSON request examples to begin PayPal transaction in e-SiTef
  • PayPal transactions cancelling
    • Refund using Merchant's Portal
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