curl --request POST \
--url https://api-gateway.firebanking.dev/credit-card/v1/payment \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"purchaseValue": 100,
"installments": 1,
"externalId": "ext-payment-12345",
"payment": {
"chargeType": "FEE_TO_CUSTOMER",
"capture": true,
"card": {
"name": "JOSE DAS NEVES TEST",
"number": "5383638854408981",
"expiration": "12/24",
"securityCode": "220"
},
"cardToken": {
"cardToken": "550e8400-e29b-41d4-a716-446655440000",
"cvv": "220"
}
},
"purchaseTitle": "Compra de Produto",
"description": "Descrição da compra",
"buyer": {
"name": "João da Silva Teste",
"document": "11144477735",
"email": "[email protected]",
"phone": "11999999999",
"countryCode": "+55",
"address": {
"country": "BR",
"state": "SP",
"city": "São Paulo",
"district": "Centro",
"street": "Rua das Flores",
"zipCode": "01000000",
"number": "220",
"complement": "Apto 45"
}
},
"buyerUuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"additionalInfo": {
"customerIp": "192.168.1.100"
},
"callbackUrl": "<string>"
}
'