Using this feature you can register a customer’s credit card data and get a token sequential number.

        Args:
            payer_id:
            name:
            identification_number:
            payment_method:
            number:
            expiration_date:

        Returns:

def create_single_token(self, *, payer_id, name, identification_number, payment_method, number, expiration_date):
        """
        Using this feature you can register a customer’s credit card data and get a token sequential number.

        Args:
            payer_id:
            name:
            identification_number:
            payment_method:
            number:
            expiration_date:

        Returns:

        """
        payload = {
            "language": self.client.language.value,
            "command": PaymentCommand.CREATE_TOKEN.value,
            "merchant": {
                "apiLogin": self.client.api_login,
                "apiKey": self.client.api_key
            },
            "creditCardToken": {
                "payerId": payer_id,
                "name": name,
                "identificationNumber": identification_number,
                "paymentMethod": payment_method,
                "number": number,
                "expirationDate": expiration_date
            },
            "test": self.client.is_test
        }
        return self.client._post(self.url, json=payload)