def build_checkout_params(self, **kwargs):
params = kwargs or {}<EOL>if self.sender:<EOL><INDENT>params['<STR_LIT>'] = self.sender.get('<STR_LIT:name>')<EOL>params['<STR_LIT>'] = self.sender.get('<STR_LIT>')<EOL>params['<STR_LIT>'] = self.sender.get('<STR_LIT>')<EOL>params['<STR_LIT>'] = is_valid_email(self.sender.get('<STR_LIT:email>'))<EOL>params['<STR_LIT>'] = is_valid_cpf(self.sender.get('<STR_LIT>'))<EOL>params['<STR_LIT>'] = is_valid_cnpj(self.sender.get('<STR_LIT>'))<EOL>params['<STR_LIT>'] = self.sender.get('<STR_LIT>')<EOL>params['<STR_LIT>'] = self.sender.get('<STR_LIT>')<EOL><DEDENT>if self.config.USE_SHIPPING:<EOL><INDENT>if self.shipping:<EOL><INDENT>params['<STR_LIT>'] = self.shipping.get('<STR_LIT:type>')<EOL>params['<STR_LIT>'] = self.shipping.get('<STR_LIT>')<EOL>params['<STR_LIT>'] = self.shipping.get('<STR_LIT>')<EOL>params['<STR_LIT>'] = self.shipping.get(<EOL>'<STR_LIT>')<EOL>params['<STR_LIT>'] = self.shipping.get(<EOL>'<STR_LIT>')<EOL>params['<STR_LIT>'] = self.shipping.get(<EOL>'<STR_LIT>')<EOL>params['<STR_LIT>'] = self.shipping.get('<STR_LIT>')<EOL>params['<STR_LIT>'] = self.shipping.get('<STR_LIT:state>')<EOL>params['<STR_LIT>'] = self.shipping.get('<STR_LIT>',<EOL>'<STR_LIT>')<EOL>if self.shipping.get('<STR_LIT>'):<EOL><INDENT>params['<STR_LIT>'] = self.shipping.get('<STR_LIT>')<EOL><DEDENT><DEDENT><DEDENT>else:<EOL><INDENT>params['<STR_LIT>'] = '<STR_LIT:false>'<EOL><DEDENT>if self.extra_amount:<EOL><INDENT>params['<STR_LIT>'] = self.extra_amount<EOL><DEDENT>params['<STR_LIT>'] = self.reference<EOL>params['<STR_LIT>'] = self.data['<STR_LIT:email>']<EOL>if self.redirect_url:<EOL><INDENT>params['<STR_LIT>'] = self.redirect_url<EOL><DEDENT>if self.notification_url:<EOL><INDENT>params['<STR_LIT>'] = self.notification_url<EOL><DEDENT>if self.abandon_url:<EOL><INDENT>params['<STR_LIT>'] = self.abandon_url<EOL><DEDENT>for i, item in enumerate(self.items, <NUM_LIT:1>):<EOL><INDENT>params['<STR_LIT>' % i] = item.get('<STR_LIT:id>')<EOL>params['<STR_LIT>' % i] = item.get('<STR_LIT:description>')<EOL>params['<STR_LIT>' % i] = item.get('<STR_LIT>')<EOL>params['<STR_LIT>' % i] = item.get('<STR_LIT>')<EOL>params['<STR_LIT>' % i] = item.get('<STR_LIT>')<EOL>params['<STR_LIT>' % i] = item.get('<STR_LIT>')<EOL><DEDENT>if self.payment:<EOL><INDENT>params['<STR_LIT>'] = self.payment.get('<STR_LIT>')<EOL>params['<STR_LIT>'] = self.payment.get('<STR_LIT>')<EOL><DEDENT>if self.credit_card:<EOL><INDENT>params['<STR_LIT>'] = '<STR_LIT>'<EOL>credit_card_keys_map = [<EOL>('<STR_LIT>', '<STR_LIT>'),<EOL>('<STR_LIT>', '<STR_LIT>'),<EOL>('<STR_LIT>', '<STR_LIT>'),<EOL>('<STR_LIT>',<EOL>'<STR_LIT>'),<EOL>('<STR_LIT>', '<STR_LIT>'),<EOL>('<STR_LIT>', '<STR_LIT>'),<EOL>('<STR_LIT>', '<STR_LIT>'),<EOL>('<STR_LIT>', '<STR_LIT>'),<EOL>('<STR_LIT>', '<STR_LIT>'),<EOL>('<STR_LIT>', '<STR_LIT>'),<EOL>('<STR_LIT>', '<STR_LIT>'),<EOL>('<STR_LIT>', '<STR_LIT>'),<EOL>('<STR_LIT>', '<STR_LIT>'),<EOL>('<STR_LIT>', '<STR_LIT>'),<EOL>('<STR_LIT>', '<STR_LIT>'),<EOL>('<STR_LIT>', '<STR_LIT>'),<EOL>]<EOL>for key_to_set, key_to_get in credit_card_keys_map:<EOL><INDENT>params[key_to_set] = self.credit_card.get(key_to_get)<EOL><DEDENT><DEDENT>if self.pre_approval:<EOL><INDENT>params['<STR_LIT>'] = self.pre_approval.get('<STR_LIT>')<EOL>params['<STR_LIT>'] = self.pre_approval.get('<STR_LIT:name>')<EOL>params['<STR_LIT>'] = self.pre_approval.get('<STR_LIT>')<EOL>params['<STR_LIT>'] = self.pre_approval.get(<EOL>'<STR_LIT>')<EOL>params['<STR_LIT>'] = self.pre_approval.get(<EOL>'<STR_LIT>')<EOL>params['<STR_LIT>'] = self.pre_approval.get('<STR_LIT>')<EOL>params['<STR_LIT>'] = self.pre_approval.get(<EOL>'<STR_LIT>')<EOL>params['<STR_LIT>'] = self.pre_approval.get(<EOL>'<STR_LIT>')<EOL>params['<STR_LIT>'] = self.pre_approval.get(<EOL>'<STR_LIT>')<EOL>params['<STR_LIT>'] = self.pre_approval.get(<EOL>'<STR_LIT>')<EOL>params['<STR_LIT>'] = self.pre_approval.get(<EOL>'<STR_LIT>')<EOL><DEDENT>self.data.update(params)<EOL>self.clean_none_params()<EOL>
build a dict with params