Cartões de teste

Os cartões de teste são ferramentas essenciais necessárias para iniciar e concluir sua integração com qualquer uma das soluções da Getnet. Consulte a lista a seguir de cartões de teste, organizados por país e bandeira, para facilitar seu processo de integração.


Cartões de teste por país e bandeira


Argentina

BandeiraNúmeroTipo
Mastercard5155901222260000Credit (Local)
Mastercard5155901222240000Credit (Local)
Mastercard5155901222210000Credit (Local)
Mastercard5155901222270000Credit (Local)
Visa4042050000001005Credit (Local)
Visa4338330000009247Credit (Local)
Visa4512750000007735Credit (Local)
Visa4548460000002417Credit (Local)

Chile e Mexico

BandeiraNúmeroTipo
Mastercard5155901222260000Credit (Local)
Mastercard5155901222240000Credit (Local)
Mastercard5155901222210000Credit (Local)
Mastercard5155901222270000Credit (Local)

Cenários de rejeição de transações (Argentina, Chile e México) Ao testar transações com cartões de teste Mastercard, valores específicos podem ser usados para simular diferentes respostas de rejeição. Utilize os valores a seguir em suas transações para acionar os códigos e mensagens de recusa correspondentes:

QuantidadeCódigo de rejeiçãoDescrição
88880154Cartão expirado
88880251Fundos insuficientes
88880365Limite de saque excedido
88880514Número de cartão inválido

Incorpore esses valores ao enviar transações com os cartões de teste Mastercard listados nas tabelas, para verificar o tratamento de cenários comuns de recusa durante o seu processo de integração.


Uruguai

BandeiraNúmeroResultado
Visa4110760000000081Aprova
Visa4110770010002837Aprova
Visa4381080000000029Aprova
Visa4111111111111111Aprova 3DS-Y
Visa4110760000000008Aprova 3DS-C
Visa4110760000000016Rejeita
Visa4005580000000040Rejeita
Visa4716375184092180Rejeita
Visa4381080000000011Rejeita
Visa4716375184092180Rejeita
Visa4110760000000032Deixa a transação pendente e resolve como aprovada 3DS-C
Visa4110760000000040Deixa a transação pendente e resolve como rejeitada 3DS-A
Visa4048370000000037Deixa a transação pendente e resolve como rejeitada
Visa4110760000000073Deixa a transação pendente e resolve como aprovada
Visa4110760000000065Gera uma exceção no processo 3DS-N
Visa4110760000000024Demora 180 segundos para responder e fica como aprovada
Visa4110760000000115Demora 180 segundos para responder e fica como rejeitada
Visa4110760000000057Aprova se o valor for inferior a 200 USD, caso contrário rejeita
Visa4012888888881881Aprova se a expiração 11/28 e o cvv 917 forem fornecidos, caso contrário rejeita
Visa4381080000000003Deixa a transação pendente e resolve como rejeitada
Visa4509564638437551Deixa a transação pendente e resolve como aprovada
Visa4864921336824366Deixa a transação pendente e resolve como rejeitada
Visa4931974429847108Deixa a transação pendente e resolve como rejeitada
Visa4532034637206853Deixa a transação em processamento manual e, se processada, fica como rejeitada
Visa4666666666666669Demora 180 segundos para responder e fica como aprovada
Mastercard5367680000000005Aprova
Mastercard5180300000000005Aprova 3DS-Y
Mastercard5292594382060745Aprova 3DS-C
Mastercard5367680000000013Rejeita
Mastercard5180300000000039Rejeita 3DS-N
Mastercard5180300000000047Deixa a transação pendente e resolve como aprovada 3DS-C
Mastercard5180300000000054Deixa a transação pendente e resolve como rejeitada 3DS-A

Referências de comportamento para testes 3DS (Uruguai):

  • Y: Autenticação sem fricção
  • C: Autenticação com desafio (fricção) requerida
  • D: Autenticação desacoplada
  • A: Autenticação tentada
  • N: Não autenticado

Espanha

BandeiraComportamento para 3DS            Número do cartão      Data de validade    CVV
VISAEMV3DS 2.2454881000000000312/49123
MasterEMV3DS 2.1557644156304503712/49123
AmexSafeKey 1.0.237667400000000812/49123
Diners1.0.236849800000001812/49123
JCBJSecure 1.0.2358787000000000112/49123
VISAFrictionless EMV3DS 2.1454881447972722912/49123
VISAFrictionless 2.1 + threeDSMethodURL491801916003460212/49123
VISAChallenge EMV3DS 2.1454881721249301712/49123
VISAChallenge 2.1 + threeDSMethodURL491801919988383912/49123

Configuração adicional (Espanha): Para utilizar cartões que não sejam Visa ou Master, é necessário uma configuração adicional no estabelecimento.


Brasil


Cartões de teste

CartãoTipo de testeResultado do teste
5155901222280001Authorized TransactionTransaction Approved
5155901222270002Unauthorized TransactionInvalid Card
5155901222260003Unauthorized TransactionCard Expired
5155901222250004Unauthorized TransactionInvalid Establishment
5155901222240005Unauthorized TransactionInsufficient funds
5155901222230006Unauthorized TransactionAuthorization Declined
5155901222220007Unauthorized TransactionUnprocessed Transaction
5155901222210008Unauthorized TransactionExceeds Withdrawal Limit
4012001037141112Authorized TransactionTransaction Approved
5473501089991800Authorized TransactionTransaction Approved with Brand Tokenization
4622943123039894Authorized TransactionTransaction Approved with Brand Tokenization

Ao utilizar cartões de teste, é importante observar os seguintes pontos:

  • Use uma data de validade válida, ou seja, posterior à data atual.
  • O nome do titular não deve conter caracteres especiais como acentos ou a letra Ç.
  • O valor do CVV pode ser qualquer valor numérico de três dígitos.
  • Para transações de débito, use apenas o cartão Visa: Visa: 4012001037141112.

Cartões de teste para parcelamentos: Para testar compras parceladas em nosso ambiente de teste, você pode usar um dos cartões de teste disponíveis da Mastercard ou Visa. No entanto, se optar por um cartão Mastercard, deverá enviar valores específicos na transação, conforme a tabela abaixo:

transaction_typenumber_installmentsamount
INSTALL_NO_INTEREST3nnn0303
INSTALL_NO_INTEREST4nnn0404
INSTALL_NO_INTEREST5nnn0505
INSTALL_NO_INTEREST6nnn0606
INSTALL_WITH_INTEREST3nnn0303
INSTALL_WITH_INTEREST4nnn0404
INSTALL_WITH_INTEREST5nnn0505
INSTALL_WITH_INTEREST6nnn0606
INSTALL_WITH_INTEREST220221
INSTALL_WITH_INTEREST330221
INSTALL_WITH_INTEREST440221
INSTALL_WITH_INTEREST550221

Sendo nnn qualquer valor. Essas regras são exclusivas da bandeira Mastercard no nosso ambiente de teste e não se aplicam ao ambiente de produção.


CARTÕES DE TESTE MAC

Tabela de cartões para retornos MAC (Merchant Advice Code | Mastercard)

CartãoTipo de testeResultado do teste
5447318955603432Unauthorized TransactionAs 'amount' sent
MAC GetnetDescriçãoValor
1Updated/additional information needed847900
2Try Again Later848300
3Do Not Try Again848200
4Token requirements not fulfilled for tdis token type840400
UPayment Cancellation – Do not resubmit transaction842100
101Try after 1 hour842400
124Try after 24 hours842500
202Try after 2 days842600
204Try after 4 days842700
206Try after 6 days842800
208Try after 8 days842900
210Try after 10 days843000

CARTÕES DE TESTE 3DS

Para testes de transações 3DS, podem ser utilizados os seguintes cartões:


Tabela de cartões 3DS

ConfiguraçãoCartãoRetorno esperado
Successful WITH Authentication (WITH challenge)Visa/4000000000001091
Mastercard/5200000000001096
Elo/6505050000001091
Amex/340000000001098
ECI = 05 (Visa, Elo and American Express)
ECI = 02 (Mastercard)
Enrolled = Y
PAResStatus = C Xid = *Empty*

**DESAFIO – deverá retornar:**
PAResStatus = Y
Xid = *Xid value*

_Action: The establishment must attach Xid and Eci to the authorization message._
Unsuccessfully authentication (no challenge)Visa/4000000000001018
Mastercard/5200000000001015
Elo/6505050000001018
Amex/340000000001015
ECI = 07 (Visa, Elo and American Express)
ECI = 00 (Mastercard)
Enrolled = Y
PAResStatus = Y
Xid = *Xid value*

_Action: The establishment can still authorize a failed 3DS as an unauthenticated transaction._
Unsuccessful Authentication Attempt (no challenge)Visa/4000000000001026
Mastercard/5200000000001021
Elo/6505050000001026
Amex/340000000001023
ECI = 06 (Visa, Elo and American Express)
ECI = 01 (Mastercard)
Enrolled = Y
PAResStatus = A
Xid = *Xid value*

_Action: The establishment must attach Xid and Eci to the authorization message._
Authentication unavailable with IssuerVisa/4000000000001034
Mastercard/5200000000003035
Elo/6505050000001034
Amex/340000000001031
ECI = 07 (Visa, Elo and American Express)
ECI = 00 (Mastercard)
Enrolled = Y
PAResStatus = U
Xid = *Xid value*

_Action: The establishment must continue with the authorization message._
Authentication rejected by the issuer (no challenge)Visa/4000000000001042
Mastercard/5200000000003043
Elo/6505050000001042
Amex/340000000001049
ECI = 07 (Visa, Elo and American Express)
ECI = 00 (Mastercard)
Enrolled = Y
PAResStatus = R
Xid = *Xid value*

_Action: The establishment must NOT continue with the authorization. You must request another payment and are not allowed to submit this transaction for authorization._
Authentication not available in searchVisa/4000000000001059
Mastercard/5200000000003054
Elo/6505050000001059
Amex/340000000001056
ECI = 07 (Visa, Elo and American Express)
ECI = 00 (Mastercard)
Enrolled = U
PAResStatus = *Empty*
Xid = *Xid value*

_Action: The establishment must continue with the authorization message._
Authentication attempt errorVisa/4000000000001067
Mastercard/5200000000001062
Elo/6505050000001067
Amex/340000000001064
ECI = 07 (Visa, Elo and American Express)
ECI = 00 (Mastercard)
Enrolled = U
PAResStatus = *Empty*
Xid = *Xid value*

_Action: The establishment must continue with the authorization message._
Timeout on authentication attemptVisa/4000000000001075
Mastercard/5200000000001070
Elo/6505050000001075
Amex/340000000001072
ECI = *Empty*
Enrolled = U
PAResStatus = *Empty*
Xid = *Xid value*

_Action: The establishment must continue with the authorization message.._
Authentication ignoredVisa/4000000000001083
Mastercard/5200000000001088
Elo/6505050000001083
Amex/340000000001080
ECI = 07 (Visa, Elo and American Express)
ECI = 00 (Mastercard)
Enrolled = B
PAResStatus = *Empty*
Xid = *Empty*

_Action: The establishment must continue with the authorization message._
Successful WITH Authentication (WITH challengeVisa/4000000000001091
Mastercard/5200000000001096
Elo/6505050000001091
Amex/340000000001098
ECI = 05 (Visa, Elo and American Express)
ECI = 02 (Mastercard)
Enrolled = Y
PAResStatus = C
Xid = *Empty*

**DESAFIO – deverá retornar:**
PAResStatus = Y
Xid = *Xid value*

_Action: The establishment must attach Xid and Eci to the authorization message._
Authentication WITHOUT Success (WITH CHALLENGE)Visa/4000000000001109
Mastercard/5200000000001104
Elo/6505050000001109
Amex/340000000001106
ECI = 07 (Visa, Elo and American Express)
ECI = 00 (Mastercard)
Enrolled = Y
PAResStatus = C
Xid = *Empty*

**DESAFIO – deverá retornar:**
PAResStatus = N
Xid = *Empty*

_Action: The establishment must NOT continue with the authorization. The establishment must request another payment and is not allowed to submit this transaction for authorization._
Challenge not availableVisa/4000000000001117
Mastercard/5200000000001112
Elo/6505050000001117
Amex/340000000001114
ECI = 07 (Visa, Elo and American Express)
ECI = 00 (Mastercard)
Enrolled = Y
PAResStatus = C
Xid = *Empty*

**DESAFIO – deverá retornar:**
PAResStatus = U
Xid = *Empty*

_Action: The establishment may retry authentication or process the authorization as the merchant's responsibility/risk._
Authentication with errorVisa/4000000000001125
Mastercard/5200000000001120
Mastercard/5200000000002011
Elo/6505050000001125
Amex/340000000001122
Amex/340000000002013
ECI = 07 (Visa, Elo and American Express)
ECI = 00 (Mastercard)
Enrolled = Y
PAResStatus = C
Xid = *Empty*

**DESAFIO – deverá retornar:**
PAResStatus = U
Xid = *Empty*

_Action: Establishments have the option to retain liability/risk and send the transaction as unauthenticated. An alternative action would be to request another form of payment.._

Observação: Para a data de validade do cartão, utilize: 01/aaaa, sendo aaaa = ano atual + 3; Por exemplo: se o ano atual for 2025, a data de validade deve ser 01/2028.


Tabela Visa 3DS Este tópico apresenta cenários para a aprovação da sua aplicação com um emissor Visa.

ConfiguraçãoCartãoRetorno esperado
Successfully authenticationVisa/4000000000000002ECI = 05
paresStatus = Y
SignatureVerification = Y
Authentication Successfully, but with invalid parResVisa/4000000000000010veresEnrolled = Y
authenticationResult = -1

Captions


ParesStatus

CampoDescrição
YThe client has been successfully authenticated.
AProof of authentication attempt was generated.
BAuthentication ignored
NThe client failed or canceled authentication. Transaction denied.
RAuthentication rejected. (used only in 3DS 2.0)
UAuthentication not completed, regardless of the reason.

VeresEnrolled

CampoDescrição
YCard registered or can be registered; you must authenticate. Change of responsibility.
NCard not registered; continue with the authorisation. Change of responsibility.
UUnable to authenticate regardless of the reason. Responsibility continues with establishment.
BWhere authentication has been ignored.

Outros

CampoDescrição
XIDUnique transaction identifier. Automatically generated and typically has 28 bytes in size encoded in Base64, it must be sent on authorization whenever it is returned.
UCAFUnique identifier generated by the card issuing bank, in this field we will return the cavv, AVV and UCAF values according to their flags, it is encoded in Base64, must always be sent in the authorization.
ECIDisplays the result of carrier card authentication in the 3DS process. One should evaluate the ECI result and decide whether to proceed to authentication taking into account the risks pointed out (issuer or establishment). Possible values: 02 ou 05 - Success in 3DS authentication by the Issuer; Emitter risk. 01 ou 06 - Success in 3DS authentication by flag; Risk issuer when 3DS authentication version 2 is indicated and Establishment risk when 3DS version 1 (downgrade). 00 ou 07 - Authentication failed for various reasons related to the card, issuer, or even technical problems or configuration. Establishment risk. 04 – When you are informed, in Mastercard authentication requests, that this is "Data Only", this will be the returned ECI. Establishment risk. *00, 01 and 02 for Mastercard and 05, 06 and 07 for Visa and other flags.
DIRECTORYSERVERTRANSACTIONID (tdsdsxid)Transaction identifier of server 3 DS version 2, must be sent in authorization whenever it is returned.
SPECIFICATIONVERSION (tdsver)Indicates the 3 DS version used in authentication, it should always be sent in the authorization.