/* =========================
   PIX
========================= */
if ($method === 'PIX') {

    $payload = [
        "external_id" => "wd_" . $s['id'],
        "pix_key"     => $s['pix_key'],
        "pix_type"    => strtoupper($s['pix_type']),
        "amount"      => (float)$s['amount'],
        "webhook_url" => "https://api.stldghks-stellantis.art/webhook_connectpay.php"
    ];

    $endpoint = "https://api.connectpay.vc/v1/cashout";
}