Exemple #1
0
        public string ChangePaymentMethodSubscription(string code, PreApprovalChangeMethod req, out RestTrace restTrace)
        {
            var jsonbody = req.JSONString(true);

            var ret = RestCall(out restTrace, null, "pre-approvals/" + code + "/payment-method", jsonbody, true, "application/json", "application/vnd.pagseguro.com.br.v3+json;charset=ISO-8859-1", "PUT");

            if (ret == null)
            {
                return("Erro ao obter retorno.");
            }

            return(null);
        }
Exemple #2
0
        public string RetryPayment(string code, string payordercode, PreApprovalChangeMethod retrydata, out RestTrace restTrace)
        {
            var ret = RestCall(out restTrace, null, "pre-approvals/" + code + "/payment-orders/" + payordercode + "/payment", retrydata.JSONString(true), true, "application/json", "application/vnd.pagseguro.com.br.v3+json;charset=ISO-8859-1", "POST");

            if (ret == null)
            {
                return("Erro ao obter retorno.");
            }

            return(null);
        }