Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MissingMethodException usando versões mais recentes de RestSharp. #8

Open
Cappi1998 opened this issue Feb 19, 2024 · 0 comments
Open

Comments

@Cappi1998
Copy link

Boa noite, parece não ter mais compatibilidade com as ultimas versões do RestSharp.

System.MissingMethodException: 'Method not found: 'Void RestSharp.RestClient..ctor(System.String)'.'

RestSharp Versão 108.0.1 funciona perfeitamente, agora com as ultimas versões do RestSharp recebemos a exception MissingMethodException

o erro pode ser reproduzindo de forma simples utilizando o metodo

dynamic endpoints = new Endpoints("client_id", "client_secret", true, "production.p12");
            
var body = new 
{
    calendario = new {
        expiracao = 3600
    },
    devedor = new {
        cpf = "12345678909",
        nome = "Francisco da Silva"
    },
    valor = new {
        original = "1.45"
    },
    chave = "71cdf9ba-c695-4e3c-b010-abb521a3f1be",
    solicitacaoPagador = "Informe o número ou identificador do pedido."
};

var response = endpoints.PixCreateImmediateCharge(null, body);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant