Como utilizar
Basicamente, transações utilizando Card on File vão utilizar as tags initiating_entity e initiating_reason com os respectivos valores merchant e credentials_on_file
Exemplo
"initiator": {
"initiating_entity": "merchant",
"initiating_reason": "credentials_on_file"
}
Exemplo de um Request Completo
{
"amount": 2000,
"initiator_id": "e4ca44a8d57c4df6",
"reference_id": "e4ca44a8d57c4df6",
"local_datetime": "2024-04-12T12:01:54",
"payment_method": "card",
"channel": "website",
"card_transaction": {
"type": "credit",
"operation_type": "auth_and_capture",
"card": {
"entry_mode": "credentials_on_file",
"number": "6033401111633077000",
"expiration_date": "3111",
"cvv": "123",
"holder_name": "TONY STARK"
}
},
"initiator": {
"initiating_entity": "merchant",
"initiating_reason": "credentials_on_file"
}
}
Exemplo de Response Completo
{
"id": "B7843C6C57836C5ETWGFU",
"initiator_id": "1470375860-3.19.3.3-RG0DA3-0001",
"reference_id": "787CVBNBN794",
"amount": 923,
"status": "authorized",
"payment_method": "card",
"created_at": "2023-07-01T11:50:37Z",
"card_transaction": {
"type": "credit",
"funding_source": "credit",
"result": "success",
"transaction_id": "cb42d188-aca6-46f2-a2c9-046cb6342f5d",
"operation_id": "4d41314b-cb2d-4abe-b594-fd6875726e1b",
"authorization_code": "ABC416",
"acquirer_message": "Aprovado",
"acquirer_return_code": "0000",
"card": {
"brand": "Visa",
"emv_response": "9F0500"
}
}
}
{
"error_code": "api_400",
"details": {
"message": "Transação Inválida",
"description": "Headers obrigatórios não foram informados na requisição."
}
}
{
"error_code": "unauthorized",
"details": {
"message": "Estabelecimento Comercial Não Cadastrado"
}
}
{
"error_code": "internal_server_error",
"details": {
"message": "Erro no Sistema"
}
}
{
"error_code": "acquirer_bad_gateway",
"details": {
"message": "Erro de Conexão"
}
}
{
"error_code": "acquirer_service_unavailable",
"details": {
"message": "Serviço Indisponível"
}
}
{
"error_code": "acquirer_timeout",
"details": {
"message": "Erro de Conexão"
}
}