[2025-06-15 14:33:43] 📥 Dados recebidos do PayHubr
Dados: {
    "raw": "{\"orderId\":9718517,\"platform\":\"PayHubr\",\"paymentMethod\":\"pix\",\"status\":\"paid\",\"createdAt\":\"2025-06-15T14:33:01-03:00\",\"approvedDate\":\"2025-06-15 14:33:43\",\"paidAt\":\"2025-06-15 14:33:43\",\"refundedAt\":null,\"customer\":{\"name\":\"Sophia Gomes Santos\",\"email\":\"sophiagomessantos575@yahoo.com.br\",\"phone\":null,\"document\":{\"number\":\"50204788226\",\"type\":\"CPF\"},\"country\":\"BR\",\"ip\":\"15.228.196.195\"},\"items\":[{\"id\":\"PROD_684f03f74a4f2\",\"title\":\"taxa up01\",\"quantity\":1,\"unitPrice\":\"500\"}],\"amount\":\"500\",\"fee\":{\"fixedAmount\":149,\"netAmount\":331},\"trackingParameters\":[],\"isTest\":false}"
}
----------------------------------------
[2025-06-15 14:33:43] 🔄 Processando dados recebidos
Dados: {
    "orderId": 9718517,
    "platform": "PayHubr",
    "paymentMethod": "pix",
    "status": "paid",
    "createdAt": "2025-06-15T14:33:01-03:00",
    "approvedDate": "2025-06-15 14:33:43",
    "paidAt": "2025-06-15 14:33:43",
    "refundedAt": null,
    "customer": {
        "name": "Sophia Gomes Santos",
        "email": "sophiagomessantos575@yahoo.com.br",
        "phone": null,
        "document": {
            "number": "50204788226",
            "type": "CPF"
        },
        "country": "BR",
        "ip": "15.228.196.195"
    },
    "items": [
        {
            "id": "PROD_684f03f74a4f2",
            "title": "taxa up01",
            "quantity": 1,
            "unitPrice": "500"
        }
    ],
    "amount": "500",
    "fee": {
        "fixedAmount": 149,
        "netAmount": 331
    },
    "trackingParameters": [],
    "isTest": false
}
----------------------------------------
[2025-06-15 14:33:43] 📤 Dados formatados para Utmify
Dados: {
    "orderId": 9718517,
    "platform": "SkalePay",
    "paymentMethod": "pix",
    "status": "paid",
    "createdAt": "2025-06-15 17:33:01",
    "approvedDate": "2025-06-15 17:33:43",
    "refundedAt": null,
    "customer": {
        "name": "Sophia Gomes Santos",
        "email": "sophiagomessantos575@yahoo.com.br",
        "phone": null,
        "document": "50204788226",
        "country": "BR",
        "ip": "186.209.113.102"
    },
    "products": [
        {
            "id": "PROD_684f03f74a4f2",
            "name": "taxa up01",
            "planId": null,
            "planName": null,
            "quantity": 1,
            "priceInCents": "500"
        }
    ],
    "trackingParameters": {
        "src": null,
        "sck": null,
        "utm_source": null,
        "utm_campaign": null,
        "utm_medium": null,
        "utm_content": null,
        "utm_term": null,
        "xcod": null,
        "fbclid": null,
        "gclid": null,
        "ttclid": null
    },
    "commission": {
        "totalPriceInCents": "500",
        "gatewayFeeInCents": 149,
        "userCommissionInCents": 331
    },
    "isTest": false
}
----------------------------------------
[2025-06-15 14:33:43] 📡 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-06-15 14:33:43] ✅ Resposta da API Utmify
Dados: {
    "http_code": 200,
    "response": {
        "OK": true,
        "data": [],
        "result": "SUCCESS"
    }
}
----------------------------------------
[2025-06-15 14:35:41] 📥 Dados recebidos do PayHubr
Dados: {
    "raw": "{\"orderId\":9718637,\"platform\":\"PayHubr\",\"paymentMethod\":\"pix\",\"status\":\"paid\",\"createdAt\":\"2025-06-15T14:35:01-03:00\",\"approvedDate\":\"2025-06-15 14:35:41\",\"paidAt\":\"2025-06-15 14:35:41\",\"refundedAt\":null,\"customer\":{\"name\":\"Beatriz Ribeiro Soares\",\"email\":\"beatrizribeirosoares733@uol.com.br\",\"phone\":null,\"document\":{\"number\":\"59956340200\",\"type\":\"CPF\"},\"country\":\"BR\",\"ip\":\"18.228.22.235\"},\"items\":[{\"id\":\"PROD_684f046d8a04d\",\"title\":\"taxa up01\",\"quantity\":1,\"unitPrice\":\"500\"}],\"amount\":\"500\",\"fee\":{\"fixedAmount\":149,\"netAmount\":331},\"trackingParameters\":[],\"isTest\":false}"
}
----------------------------------------
[2025-06-15 14:35:41] 🔄 Processando dados recebidos
Dados: {
    "orderId": 9718637,
    "platform": "PayHubr",
    "paymentMethod": "pix",
    "status": "paid",
    "createdAt": "2025-06-15T14:35:01-03:00",
    "approvedDate": "2025-06-15 14:35:41",
    "paidAt": "2025-06-15 14:35:41",
    "refundedAt": null,
    "customer": {
        "name": "Beatriz Ribeiro Soares",
        "email": "beatrizribeirosoares733@uol.com.br",
        "phone": null,
        "document": {
            "number": "59956340200",
            "type": "CPF"
        },
        "country": "BR",
        "ip": "18.228.22.235"
    },
    "items": [
        {
            "id": "PROD_684f046d8a04d",
            "title": "taxa up01",
            "quantity": 1,
            "unitPrice": "500"
        }
    ],
    "amount": "500",
    "fee": {
        "fixedAmount": 149,
        "netAmount": 331
    },
    "trackingParameters": [],
    "isTest": false
}
----------------------------------------
[2025-06-15 14:35:41] 📤 Dados formatados para Utmify
Dados: {
    "orderId": 9718637,
    "platform": "SkalePay",
    "paymentMethod": "pix",
    "status": "paid",
    "createdAt": "2025-06-15 17:35:01",
    "approvedDate": "2025-06-15 17:35:41",
    "refundedAt": null,
    "customer": {
        "name": "Beatriz Ribeiro Soares",
        "email": "beatrizribeirosoares733@uol.com.br",
        "phone": null,
        "document": "59956340200",
        "country": "BR",
        "ip": "186.209.113.102"
    },
    "products": [
        {
            "id": "PROD_684f046d8a04d",
            "name": "taxa up01",
            "planId": null,
            "planName": null,
            "quantity": 1,
            "priceInCents": "500"
        }
    ],
    "trackingParameters": {
        "src": null,
        "sck": null,
        "utm_source": null,
        "utm_campaign": null,
        "utm_medium": null,
        "utm_content": null,
        "utm_term": null,
        "xcod": null,
        "fbclid": null,
        "gclid": null,
        "ttclid": null
    },
    "commission": {
        "totalPriceInCents": "500",
        "gatewayFeeInCents": 149,
        "userCommissionInCents": 331
    },
    "isTest": false
}
----------------------------------------
[2025-06-15 14:35:41] 📡 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-06-15 14:35:41] ✅ Resposta da API Utmify
Dados: {
    "http_code": 200,
    "response": {
        "OK": true,
        "data": [],
        "result": "SUCCESS"
    }
}
----------------------------------------
