[2025-05-21 21:20:35] 📥 Dados recebidos do PayHubr
Dados: {
    "raw": "{\"orderId\":\"7797991\",\"platform\":\"Skalepay\",\"paymentMethod\":\"pix\",\"status\":\"paid\",\"createdAt\":\"2025-05-22T00:18:18.678Z\",\"approvedDate\":\"2025-05-22T00:20:30.481Z\",\"paidAt\":\"2025-05-22T00:20:30.481Z\",\"refundedAt\":null,\"customer\":{\"name\":\"Sofia Fernandes Silva\",\"email\":\"sofiafernandessilva335@gmail.com\",\"phone\":\"(11) 99999-9999\",\"document\":{\"number\":\"86752052280\",\"type\":\"CPF\"},\"country\":\"BR\",\"ip\":\"18.230.214.0\"},\"items\":[{\"id\":\"PROD_682e6dd398ed1\",\"title\":\"produto \",\"quantity\":1,\"unitPrice\":5784}],\"amount\":5784,\"fee\":{\"fixedAmount\":200,\"netAmount\":5353},\"trackingParameters\":{\"src\":\"organic\",\"sck\":\"organichQwK21wXxRhQwK21wXxRhQwK21wXxRhQwK21wXxR\",\"utm_source\":\"organic\",\"xcod\":\"organichQwK21wXxRhQwK21wXxRhQwK21wXxRhQwK21wXxR\"},\"isTest\":false}"
}
----------------------------------------
[2025-05-21 21:20:35] 🔄 Processando dados recebidos
Dados: {
    "orderId": "7797991",
    "platform": "Skalepay",
    "paymentMethod": "pix",
    "status": "paid",
    "createdAt": "2025-05-22T00:18:18.678Z",
    "approvedDate": "2025-05-22T00:20:30.481Z",
    "paidAt": "2025-05-22T00:20:30.481Z",
    "refundedAt": null,
    "customer": {
        "name": "Sofia Fernandes Silva",
        "email": "sofiafernandessilva335@gmail.com",
        "phone": "(11) 99999-9999",
        "document": {
            "number": "86752052280",
            "type": "CPF"
        },
        "country": "BR",
        "ip": "18.230.214.0"
    },
    "items": [
        {
            "id": "PROD_682e6dd398ed1",
            "title": "produto ",
            "quantity": 1,
            "unitPrice": 5784
        }
    ],
    "amount": 5784,
    "fee": {
        "fixedAmount": 200,
        "netAmount": 5353
    },
    "trackingParameters": {
        "src": "organic",
        "sck": "organichQwK21wXxRhQwK21wXxRhQwK21wXxRhQwK21wXxR",
        "utm_source": "organic",
        "xcod": "organichQwK21wXxRhQwK21wXxRhQwK21wXxRhQwK21wXxR"
    },
    "isTest": false
}
----------------------------------------
[2025-05-21 21:20:35] 📤 Dados formatados para Utmify
Dados: {
    "orderId": "7797991",
    "platform": "SkalePay",
    "paymentMethod": "pix",
    "status": "paid",
    "createdAt": "2025-05-22 00:18:18",
    "approvedDate": "2025-05-22 00:20:30",
    "refundedAt": null,
    "customer": {
        "name": "Sofia Fernandes Silva",
        "email": "sofiafernandessilva335@gmail.com",
        "phone": null,
        "document": "86752052280",
        "country": "BR",
        "ip": "186.209.113.102"
    },
    "products": [
        {
            "id": "PROD_682e6dd398ed1",
            "name": "produto ",
            "planId": null,
            "planName": null,
            "quantity": 1,
            "priceInCents": 5784
        }
    ],
    "trackingParameters": {
        "src": "organic",
        "sck": "organichQwK21wXxRhQwK21wXxRhQwK21wXxRhQwK21wXxR",
        "utm_source": "organic",
        "utm_campaign": null,
        "utm_medium": null,
        "utm_content": null,
        "utm_term": null,
        "xcod": "organichQwK21wXxRhQwK21wXxRhQwK21wXxRhQwK21wXxR",
        "fbclid": null,
        "gclid": null,
        "ttclid": null
    },
    "commission": {
        "totalPriceInCents": 5784,
        "gatewayFeeInCents": 200,
        "userCommissionInCents": 5353
    },
    "isTest": false
}
----------------------------------------
[2025-05-21 21:20:35] 📡 Enviando requisição para Utmify
Dados: {
    "url": "https:\/\/api.utmify.com.br\/api-credentials\/orders",
    "headers": [
        "Content-Type: application\/json",
        "x-api-token: [REDACTED]"
    ]
}
----------------------------------------
[2025-05-21 21:20:35] ✅ Resposta da API Utmify
Dados: {
    "http_code": 200,
    "response": {
        "OK": true,
        "data": [],
        "result": "SUCCESS"
    }
}
----------------------------------------
