1
I am developing an application with customer registrations, and my class View to register a client was like this:
class AdicionarClienteView(CustomCreateView):
    form_class = OportunidadeForm
    template_name = "cadastro/cliente.html"
    success_url = reverse_lazy('cadastro:cliente_add_view')
    permission_codename = 'add_cliente'
    def view_context(self, context):
        context['title_complete'] = 'ADICIONAR OPORTUNIDADE'
        context['return_url'] = reverse_lazy('crm2:listaoportunidadeview')
        return context
    def get(self, request, *args, **kwargs):
        form_class = self.get_form_class()
        return super(AdicionarOportunidadeView, self).get(request, form_class, *args, **kwargs)
    def post(self, request, *args, **kwargs):
        form_class = self.get_form_class()
        return super(AdicionarOportunidadeView, self).post(request, form_class, *args, **kwargs)
It is working perfectly.
Now I need an integration with the payment system Hotmart. For that I have to make a GET request for the link 
https://api-sec-vlc.hotmart.com/security/oauth/authorize?response_type=code&client_id=[]&redirect_uri=[]
And after the user has logged in, the application will be redirected to the link I pass in the key redirect_url.
I’m a little lost in how to do this integration. It would be something like the function get() and post() I did to register the client and passing the link in some variable?