$errors = ''; $result = false; $MoIP = new MoIP(); if ($_POST != "") { $result = "VERIFICADO"; $id_var = explode('[', $_POST['id_transacao']); $id_var_explode = $id_var[1]; $tmp = explode(']', $id_var_explode); $id_transacao_moip = $tmp[0]; $id_moeda = Configuration::get('PS_CURRENCY_DEFAULT'); } else { $result = "FALHOU"; } if ($result == 'VERIFICADO') { if (!isset($_POST['valor'])) { $errors .= $MoIP->getL('valor_moip'); } if (!isset($_POST['status_pagamento'])) { $errors .= $MoIP->getL('status_pagamento_moip'); } if ($_POST['status_pagamento'] == 1) { $status = Configuration::get('MoIP_STATUS_0'); } elseif ($_POST['status_pagamento'] == 2) { $status = Configuration::get('MoIP_STATUS_1'); } elseif ($_POST['status_pagamento'] == 3) { $status = Configuration::get('MoIP_STATUS_2'); } elseif ($_POST['status_pagamento'] == 4) { $status = Configuration::get('MoIP_STATUS_3'); } elseif ($_POST['status_pagamento'] == 5) { $status = Configuration::get('MoIP_STATUS_4'); } elseif ($_POST['status_pagamento'] == 6) {