braintree/transparent_redirect_gateway.py
def confirm(self, query_string):
        """
        Confirms a transparent redirect request. It expects the query string from the
        redirect request. The query string should _not_ include the leading "?" character. ::

            result = braintree.TransparentRedirect.confirm("foo=bar&id=12345")
        """
        parsed_query_string = self._parse_and_validate_query_string(query_string)
        confirmation_gateway = {
            TransparentRedirect.Kind.CreateCustomer: "customer",
            TransparentRedirect.Kind.UpdateCustomer: "customer",
            TransparentRedirect.Kind.CreatePaymentMethod: "credit_card",
            TransparentRedirect.Kind.UpdatePaymentMethod: "credit_card",
            TransparentRedirect.Kind.CreateTransaction: "transaction"
        }[parsed_query_string["kind"][0]]

        return getattr(self.gateway, confirmation_gateway)._post("/transparent_redirect_requests/" + parsed_query_string["id"][0] + "/confirm")

        Confirms a transparent redirect request. It expects the query string from the
        redirect request. The query string should _not_ include the leading "?" character. ::

            result = braintree.TransparentRedirect.confirm("foo=bar&id=12345")
        
Confirms a transparent redirect request. It expects the query string from the
redirect request. The query string should _not_ include the leading "?" character.


Confirms a transparent redirect request . It expects the query string from the redirect request . The query string should _not_ include the leading " ? " character .
def confirm(self, query_string):
        parsed_query_string = self._parse_and_validate_query_string(query_string)
        confirmation_gateway = {
            TransparentRedirect.Kind.CreateCustomer: "customer",
            TransparentRedirect.Kind.UpdateCustomer: "customer",
            TransparentRedirect.Kind.CreatePaymentMethod: "credit_card",
            TransparentRedirect.Kind.UpdatePaymentMethod: "credit_card",
            TransparentRedirect.Kind.CreateTransaction: "transaction"
        }[parsed_query_string["kind"][0]]
        return getattr(self.gateway, confirmation_gateway)._post("/transparent_redirect_requests/" + parsed_query_string["id"][0] + "/confirm")
def confirm ( self , query_string ) : parsed_query_string = self . _parse_and_validate_query_string ( query_string ) confirmation_gateway = { TransparentRedirect . Kind . CreateCustomer : "customer" , TransparentRedirect . Kind . UpdateCustomer : "customer" , TransparentRedirect . Kind . CreatePaymentMethod : "credit_card" , TransparentRedirect . Kind . UpdatePaymentMethod : "credit_card" , TransparentRedirect . Kind . CreateTransaction : "transaction" } [ parsed_query_string [ "kind" ] [ 0 ] ] return getattr ( self . gateway , confirmation_gateway ) . _post ( "/transparent_redirect_requests/" + parsed_query_string [ "id" ] [ 0 ] + "/confirm" )
Confirms a transparent redirect request.
Confirms a transparent redirect request .
"""
        Confirms a transparent redirect request. It expects the query string from the
        redirect request. The query string should _not_ include the leading "?" character. ::

            result = braintree.TransparentRedirect.confirm("foo=bar&id=12345")
        """
self
query_string