#NEWLINE# def __init__( self , provider , payment , * args , **kwargs ) : #NEWLINE# #INDENT# attrs = kwargs . get ( 'attrs' , { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } ) #NEWLINE# kwargs [ 'attrs' ] = { #NEWLINE# #INDENT# 'class' : 'stripe-button' , #NEWLINE# 'data-key' : provider . public_key , #NEWLINE# 'data-image' : provider . image , #NEWLINE# 'data-name' : provider . name , #NEWLINE# 'data-description' : ( payment . description or _ ( 'Total payment' ) ) , #NEWLINE# 'data-amount' : int ( ( payment . total * 100 ) ) , #NEWLINE# 'data-currency' : payment . currency , #NEWLINE# #UNINDENT# } #NEWLINE# kwargs [ 'attrs' ] . update ( attrs ) #NEWLINE# super ( StripeCheckoutWidget , self ) . __init__ ( * provider , ** kwargs )