Pagamento com cartão
Método para pagamento com cartão de crédito
Nesse endpoint serão recebidos dados para pagamento com cartão de crédito.
Para o os campos delayed e pre_authorization, somente um deles podem estar com valor true, indicando assim somente um serviço de crédito a ser processado.
Header
{
"authorization": "Bearer Token"
}Request Body
{
"seller_id": "6eb2412c-165a-41cd-b1d9-76c575d70a28",
"amount": 100,
"currency": "BRL",
"order": {
"order_id": "6d2e4380-d8a3-4ccb-9138-c289182818a3",
"sales_tax": 0,
"product_type": "service"
},
"customer": {
"customer_id": "customer_21081826",
"first_name": "Nome",
"last_name": "Sobrenome",
"name": "Nome completo cliente",
"email": "[email protected]",
"document_type": "CPF",
"document_number": "12345678912",
"phone_number": "5551999887766",
"billing_address": {
"street": "Av. Brigadeiro Faria Lima",
"number": "1461",
"complement": "Sala 133",
"district": "São Paulo",
"city": "São Paulo",
"state": "SP",
"country": "Brasil",
"postal_code": "00000000"
}
},
"device": {
"ip_address": "127.0.0.1",
"device_id": "hash-device-id"
},
"shippings": [
{
"first_name": "Nome",
"name": "Nome do cliente",
"email": "[email protected]",
"phone_number": "5551999887766",
"shipping_amount": 3000,
"address": {
"street": "Av. Brigadeiro Faria Lima",
"number": "1461",
"complement": "Sala 133",
"district": "São Paulo",
"city": "São Paulo",
"state": "SP",
"country": "Brasil",
"postal_code": "00000000"
}
}
],
"sub_merchant": {
"identification_code": "9058344",
"document_type": "CNPJ",
"document_number": "20551625000159",
"address": "Torre Negra 44",
"city": "Cidade",
"state": "SP",
"postal_code": "90520000"
},
"credit": {
"delayed": false,
"pre_authorization": false,
"save_card_data": false,
"transaction_type": "FULL",
"number_installments": 1,
"soft_descriptor": "LOJA*TESTE*COMPRA-123",
"dynamic_mcc": 1799,
"card": {
"number_token": "dfe05208b105578c070f806c80abd3af09e246827d29b866cf4ce16c205849977c9496cbf0d0234f42339937f327747075f68763537b90b31389e01231d4d13c",
"cardholder_name": "CLIENTE TESTE",
"security_code": "123",
"brand": "Mastercard",
"expiration_month": "12",
"expiration_year": "28"
},
"credentials_on_file_type": "ONE_CLICK_PAYMENT",
"transaction_id": 1002217281190421
},
"tokenization": {
"type": "ELO",
"cryptogram": "string",
"eci": "01",
"requestor_id": [
{}
]
},
"wallet": {
"type": "55",
"id": "000",
"merchant_id": "327",
"fund_transfer": {
"pay_action": "FT",
"receiver": {
"account_number": "9999999999999995",
"account_type": "00",
"first_name": "Jane",
"middle_name": "T",
"last_name": "Smith",
"addr_street": "1 Main ST",
"addr_city": "SAO PAULO",
"addr_state": "SP",
"addr_country": "BRA",
"addr_postal_code": "1408000",
"nationality": "BRA",
"phone": "5511977778888",
"date_of_birth": "19901230",
"id_type": "03",
"id_num": "12345678900000"
}
}
}
}Response
{
"payment_id": "06f256c8-1bbf-42bf-93b4-ce2041bfb87e",
"seller_id": "6eb2412c-165a-41cd-b1d9-76c575d70a28",
"amount": 100,
"currency": "BRL",
"order_id": "6d2e4380-d8a3-4ccb-9138-c289182818a3",
"status": "APPROVED",
"received_at": "2017-03-19T16:30:30.764Z",
"credit": {
"delayed": false,
"authorization_code": 99999,
"authorized_at": "2017-03-19T16:30:30Z",
"reason_code": 0,
"reason_message": "transaction approved",
"soft_descriptor": "Descrição para fatura",
"brand": "Mastercard",
"terminal_nsu": 99999,
"acquirer_transaction_id": "10000024",
"transaction_id": "1002217281190421",
"first_installment_amount": "123",
"other_installment_amount": "123",
"total_installment_amount": "123"
}
}Last updated